HermesCommon
3.0
|
Numeric value is out of allowed range. More...
#include <exceptions.h>
Public Member Functions | |
ValueException (const char *name, double value, double allowed) | |
ValueException (const char *name, double value, double min, double max) | |
ValueException (const char *name, std::string passed) | |
String value is not supported. | |
double | get_value () const |
double | get_allowed () const |
return allowed value of variable. | |
ValueException (const ValueException &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(). | |
Numeric value is out of allowed range.
Definition at line 174 of file exceptions.h.
Hermes::Exceptions::ValueException::ValueException | ( | const char * | name, |
double | value, | ||
double | allowed | ||
) |
Value is greather or lower than allowed.
[in] | name | name of variable |
[in] | value | value of variable |
[in] | allowed | allowed value (maximum or minimum) |
Definition at line 211 of file exceptions.cpp.
Hermes::Exceptions::ValueException::ValueException | ( | const char * | name, |
double | value, | ||
double | min, | ||
double | max | ||
) |
Value is out of range.
[in] | name | name of variable. |
[in] | value | value of variable. |
[in] | min | minimum allowed value. |
[in] | max | minimum allowed value. |
Definition at line 221 of file exceptions.cpp.
double Hermes::Exceptions::ValueException::get_value | ( | ) | const |
Definition at line 236 of file exceptions.cpp.