mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 06:03:02 +01:00
41 lines
558 B
C++
41 lines
558 B
C++
#include "firebird.h"
|
|
|
|
//#include "fb_exception.h"
|
|
|
|
#include <string.h>
|
|
|
|
namespace Firebird {
|
|
|
|
void status_exception::raise(ISC_STATUS s)
|
|
{
|
|
throw status_exception(s);
|
|
}
|
|
|
|
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
|