HermesCommon  3.0
Hermes::Exceptions::NullException Class Reference

Null parameter exception. Internal. Exception occurs when some parameter is Null or empty and it shouldn't be. More...

#include <exceptions.h>

+ Inheritance diagram for Hermes::Exceptions::NullException:

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)
 
- 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().
 

Detailed Description

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.

Constructor & Destructor Documentation

Hermes::Exceptions::NullException::NullException ( unsigned int  param_idx)

Constructor

Parameters
[in]paramnIdxindex 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.

Parameters
[in]paramnIdxindex of parameter.
[in]elementIdxindex of null item in array parameter.

Definition at line 99 of file exceptions.cpp.

Member Function Documentation

unsigned int Hermes::Exceptions::NullException::get_item_idx ( ) const
Returns
index of null item in array parameter. Returns -1 if bad parrameter is not array with null item.

Definition at line 112 of file exceptions.cpp.

unsigned int Hermes::Exceptions::NullException::get_param_idx ( ) const
Returns
index of null parameter.

Definition at line 107 of file exceptions.cpp.


The documentation for this class was generated from the following files: