2002-04-04 07:33:01 +02:00
|
|
|
#include "fb_exception.h"
|
|
|
|
|
2002-11-11 19:06:01 +01:00
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
namespace Firebird {
|
|
|
|
|
|
|
|
void status_exception::raise(STATUS s)
|
2002-04-04 07:33:01 +02:00
|
|
|
{
|
|
|
|
throw status_exception(s);
|
|
|
|
}
|
2002-11-11 19:06:01 +01:00
|
|
|
|
|
|
|
void red_zone_error::raise()
|
|
|
|
{
|
|
|
|
throw red_zone_error();
|
|
|
|
}
|
|
|
|
|
|
|
|
void memory_corrupt::raise()
|
|
|
|
{
|
|
|
|
throw memory_corrupt();
|
|
|
|
}
|
|
|
|
|
|
|
|
void system_call_failed::raise()
|
|
|
|
{
|
|
|
|
throw system_call_failed();
|
|
|
|
}
|
|
|
|
|
|
|
|
fatal_exception::fatal_exception(char *message)
|
|
|
|
{
|
|
|
|
strncpy(txt, message, 255);
|
|
|
|
txt[255] = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void fatal_exception::raise(char *message)
|
|
|
|
{
|
|
|
|
throw fatal_exception(message);
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Firebird
|