HermesCommon
3.0
|
Null parameter exception. Internal. Exception occurs when some parameter is Null or empty and it shouldn't be. More...
#include <exceptions.h>
Public Member Functions | |
NullException () | |
Constructor - simple. | |
NullException (unsigned int param_idx) | |
NullException (unsigned int param_idx, unsigned int item_idx) | |
unsigned int | get_param_idx () const |
unsigned int | get_item_idx () const |
NullException (const NullException &e) | |
![]() | |
Exception () | |
Init exception with default message. | |
Exception (const Exception &e) | |
Exception (const char *msg,...) | |
void | print_msg () const |
print error message to stderr | |
virtual const char * | what () const throw () |
get pointer to error message | |
std::string | info () const |
const char * | get_func_name () const |
Additional Inherited Members | |
![]() | |
std::stringstream | message |
char | message_char [10000] |
To be compatible with what(). | |
Null parameter exception. Internal. Exception occurs when some parameter is Null or empty and it shouldn't be.
Definition at line 101 of file exceptions.h.
Hermes::Exceptions::NullException::NullException | ( | unsigned int | param_idx | ) |
Constructor
[in] | paramnIdx | index of null parameter. |
Definition at line 91 of file exceptions.cpp.
Hermes::Exceptions::NullException::NullException | ( | unsigned int | param_idx, |
unsigned int | item_idx | ||
) |
Null item is passed in vector or array.
[in] | paramnIdx | index of parameter. |
[in] | elementIdx | index of null item in array parameter. |
Definition at line 99 of file exceptions.cpp.
unsigned int Hermes::Exceptions::NullException::get_item_idx | ( | ) | const |
Definition at line 112 of file exceptions.cpp.
unsigned int Hermes::Exceptions::NullException::get_param_idx | ( | ) | const |
Definition at line 107 of file exceptions.cpp.