|
HermesCommon
2.0
|
Numeric value is out of allowed range. More...
#include <exceptions.h>
Inheritance diagram for Hermes::Exceptions::ValueException: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) | |
| virtual Exception * | clone () |
Public Member Functions inherited from Hermes::Exceptions::Exception | |
| Exception () | |
| Init exception with default message. | |
| Exception (const char *msg,...) | |
| void | print_msg () const |
| print error message to stderr | |
| virtual const char * | what () const throw () |
| get pointer to error message | |
| const char * | get_func_name () const |
Additional Inherited Members | |
Protected Attributes inherited from Hermes::Exceptions::Exception | |
| char * | message |
Numeric value is out of allowed range.
Definition at line 136 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 196 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 208 of file exceptions.cpp.
| double Hermes::Exceptions::ValueException::get_value | ( | ) | const |
Definition at line 227 of file exceptions.cpp.