|
HermesCommon
2.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 (int param_idx, int wrong, int right) | |
| LengthException (int fst_param_idx, int snd_param_idx, int first, int second) | |
| int | get_first_param_idx () const |
| int | get_second_param_idx () const |
| int | get_first_length () const |
| int | get_expected_length () const |
| LengthException (const LengthException &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 |
Parameter length parameter exception. Internal. Exception occurs when some parameter has wrong length.
Definition at line 92 of file exceptions.h.
| Hermes::Exceptions::LengthException::LengthException | ( | int | param_idx, |
| int | wrong, | ||
| 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 111 of file exceptions.cpp.
| Hermes::Exceptions::LengthException::LengthException | ( | int | fst_param_idx, |
| int | snd_param_idx, | ||
| int | first, | ||
| 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 122 of file exceptions.cpp.
| int Hermes::Exceptions::LengthException::get_expected_length | ( | ) | const |
Definition at line 149 of file exceptions.cpp.
| int Hermes::Exceptions::LengthException::get_first_length | ( | ) | const |
Definition at line 144 of file exceptions.cpp.
| int Hermes::Exceptions::LengthException::get_first_param_idx | ( | ) | const |
Definition at line 134 of file exceptions.cpp.
| int Hermes::Exceptions::LengthException::get_second_param_idx | ( | ) | const |
Definition at line 139 of file exceptions.cpp.