Feat C++ API
A feature engineering automation tool
error.h File Reference
#include <string>
#include <iostream>
#include <stdexcept>
#include <signal.h>
Include dependency graph for error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 FT
 main Feat namespace
 
 FT::Util
 namespace containing various utility functions used in Feat
 

Macros

#define THROW_RUNTIME_ERROR(err)   (FT::Util::ThrowRuntimeError( err, __FILE__, __LINE__ ))
 
#define THROW_INVALID_ARGUMENT(err)   (FT::Util::ThrowInvalidArgument( err, __FILE__, __LINE__ ))
 
#define THROW_LENGTH_ERROR(err)   (FT::Util::ThrowLengthError( err, __FILE__, __LINE__ ))
 
#define WARN(err)   (FT::Util::Warn( err, __FILE__, __LINE__ ))
 

Functions

void FT::Util::ThrowRuntimeError (string err, const char *file, int line)
 prints error and throws an exception More...
 
void FT::Util::ThrowInvalidArgument (string err, const char *file, int line)
 
void FT::Util::ThrowLengthError (string err, const char *file, int line)
 
void FT::Util::Warn (string err, const char *file, int line)
 prints error to stderr and returns More...
 
void FT::Util::my_handler (int s)
 handle signals (ctr-c etc.) More...
 

Macro Definition Documentation

◆ THROW_INVALID_ARGUMENT

#define THROW_INVALID_ARGUMENT (   err)    (FT::Util::ThrowInvalidArgument( err, __FILE__, __LINE__ ))

Definition at line 31 of file error.h.

◆ THROW_LENGTH_ERROR

#define THROW_LENGTH_ERROR (   err)    (FT::Util::ThrowLengthError( err, __FILE__, __LINE__ ))

Definition at line 32 of file error.h.

◆ THROW_RUNTIME_ERROR

#define THROW_RUNTIME_ERROR (   err)    (FT::Util::ThrowRuntimeError( err, __FILE__, __LINE__ ))

Definition at line 30 of file error.h.

◆ WARN

#define WARN (   err)    (FT::Util::Warn( err, __FILE__, __LINE__ ))

Definition at line 33 of file error.h.