8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 12:03:02 +01:00
firebird-mirror/src/common/fb_exception.cpp

39 lines
529 B
C++
Raw Normal View History

#include "fb_exception.h"
2002-11-11 19:06:01 +01:00
#include <string.h>
namespace Firebird {
void status_exception::raise(STATUS s)
{
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