UserDefinedCheckFailureException Class Reference

The exception to throw when a user check on a parameter fails. More...

Inheritance diagram for UserDefinedCheckFailureException:

Public Member Functions

 UserDefinedCheckFailureException (const char *paramName, const char *paramValue, const char *description) throw ()
 Constructor.
 
 UserDefinedCheckFailureException (const UserDefinedCheckFailureException &other) throw ()
 Copy constructor.
 
virtual ~UserDefinedCheckFailureException () throw ()
 Destructor.
 
const char * description () const throw ()
 Returns the error description.
 
UserDefinedCheckFailureExceptionoperator= (const UserDefinedCheckFailureException &other) throw ()
 Copy operator.
 
const char * paramName () const throw ()
 Returns the name of the parameter.
 
const char * paramValue () const throw ()
 Returns the value of the parameter.
 
virtual const char * what () const throw ()
 Returns a C string describing the exception.
 

Detailed Description

The exception to throw when a user check on a parameter fails.

Use this when a user-defined check on a parameter fails when configuring an object. The ConfigurationHelper::throwUserConfigError() function provides a convenient way of throwing an exception of this type (see function description)

Definition at line 1017 of file configurationexceptions.h.

Constructor & Destructor Documentation

UserDefinedCheckFailureException ( const char *  paramName,
const char *  paramValue,
const char *  description 
) throw ()
inline

Constructor.

Parameters
paramNamethe name of the parameter on which the check failed. The buffer for this is at most 256 characters (including the '\0' terminator)
paramValuethe value of the parameter which caused the check to fail. The buffer for this is at most 256 characters (including the '\0' terminator)
descriptiona description of the error. The buffer for this is at most 256 characters (including the '\0' terminator)

Definition at line 1033 of file configurationexceptions.h.

Copy constructor.

Parameters
otherthe exception to copy

Definition at line 1051 of file configurationexceptions.h.

virtual ~UserDefinedCheckFailureException ( ) throw ()
inlinevirtual

Destructor.

Definition at line 1091 of file configurationexceptions.h.

Member Function Documentation

const char* description ( ) const throw ()
inline

Returns the error description.

Returns
the error description

Definition at line 1130 of file configurationexceptions.h.

UserDefinedCheckFailureException& operator= ( const UserDefinedCheckFailureException other) throw ()
inline

Copy operator.

Parameters
otherthe exception to copy

Definition at line 1069 of file configurationexceptions.h.

const char* paramName ( ) const throw ()
inline

Returns the name of the parameter.

Returns
the name of the parameter

Definition at line 1110 of file configurationexceptions.h.

const char* paramValue ( ) const throw ()
inline

Returns the value of the parameter.

Returns
the value of the parameter

Definition at line 1120 of file configurationexceptions.h.

virtual const char* what ( ) const throw ()
inlinevirtual

Returns a C string describing the exception.

Returns
a C string describing the exception

Definition at line 1100 of file configurationexceptions.h.


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