28 void Warn(
string err,
const char *file,
int line);
30 #define THROW_RUNTIME_ERROR( err ) (FT::Util::ThrowRuntimeError( err, __FILE__, __LINE__ ))
31 #define THROW_INVALID_ARGUMENT( err ) (FT::Util::ThrowInvalidArgument( err, __FILE__, __LINE__ ))
32 #define THROW_LENGTH_ERROR( err ) (FT::Util::ThrowLengthError( err, __FILE__, __LINE__ ))
33 #define WARN( err ) (FT::Util::Warn( err, __FILE__, __LINE__ ))
void my_handler(int s)
handle signals (ctr-c etc.)
void ThrowInvalidArgument(string err, const char *file, int line)
void ThrowRuntimeError(string err, const char *file, int line)
prints error and throws an exception
void ThrowLengthError(string err, const char *file, int line)
void Warn(string err, const char *file, int line)
prints error to stderr and returns