|
HermesCommon
3.0
|
Parameter length parameter exception. Internal. Exception occurs when some parameter has wrong length. More...
#include <exceptions.h>
Inheritance diagram for Hermes::Exceptions::LengthException:Public Member Functions | |
| LengthException () | |
| Two parameters do not have equal length. | |
| LengthException (unsigned int wrong, unsigned int right) | |
| LengthException (unsigned int param_idx, unsigned int wrong, unsigned int right) | |
| LengthException (unsigned int fst_param_idx, unsigned int snd_param_idx, unsigned int first, unsigned int second) | |
| unsigned int | get_first_param_idx () const |
| unsigned int | get_second_param_idx () const |
| unsigned int | get_first_length () const |
| unsigned int | get_expected_length () const |
| LengthException (const LengthException &e) | |
Public Member Functions inherited from Hermes::Exceptions::Exception | |
| 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 | |
Protected Attributes inherited from Hermes::Exceptions::Exception | |
| std::stringstream | message |
| char | message_char [10000] |
| To be compatible with what(). | |
Parameter length parameter exception. Internal. Exception occurs when some parameter has wrong length.
Definition at line 126 of file exceptions.h.
| Hermes::Exceptions::LengthException::LengthException | ( | unsigned int | wrong, |
| unsigned int | right | ||
| ) |
A parameter has wrong length - simple case.
| [in] | wrong | actual length of parameter. |
| [in] | right | right length of parameter. |
Definition at line 131 of file exceptions.cpp.
| Hermes::Exceptions::LengthException::LengthException | ( | unsigned int | param_idx, |
| unsigned int | wrong, | ||
| unsigned int | right | ||
| ) |
One parameter has wrong length.
| [in] | paramnIdx | index wrong parameter. |
| [in] | wrong | actual length of parameter. |
| [in] | right | right length of parameter. |
Definition at line 139 of file exceptions.cpp.
| Hermes::Exceptions::LengthException::LengthException | ( | unsigned int | fst_param_idx, |
| unsigned int | snd_param_idx, | ||
| unsigned int | first, | ||
| unsigned int | second | ||
| ) |
Two parameters should have same length and they dont have.
| [in] | fstParamnIdx | index first parameter. |
| [in] | sndParamnIdx | index second parameter. |
| [in] | first | actual length of first parameter. |
| [in] | second | actual length of second parameter. |
Definition at line 149 of file exceptions.cpp.
| unsigned int Hermes::Exceptions::LengthException::get_expected_length | ( | ) | const |
Definition at line 174 of file exceptions.cpp.
| unsigned int Hermes::Exceptions::LengthException::get_first_length | ( | ) | const |
Definition at line 169 of file exceptions.cpp.
| unsigned int Hermes::Exceptions::LengthException::get_first_param_idx | ( | ) | const |
Definition at line 159 of file exceptions.cpp.
| unsigned int Hermes::Exceptions::LengthException::get_second_param_idx | ( | ) | const |
Definition at line 164 of file exceptions.cpp.