Design Pattern Examples
Overview of object-oriented design patterns
argumentnull_error Class Reference

Exception for arguments that are null. More...

#include <argumentnull_error.h>

Inheritance diagram for argumentnull_error:
Inheritance graph
Collaboration diagram for argumentnull_error:
Collaboration graph

Public Member Functions

 argumentnull_error (const std::string &parm, const std::string &what_arg)
 Constructor.
 
 argumentnull_error (const char *parm, const char *what_arg)
 Constructor.
 
std::string parameter ()
 Retrieve the parameter associated with the exception.
 

Private Attributes

std::string _parameter
 

Detailed Description

Exception for arguments that are null.

Definition at line 18 of file argumentnull_error.h.

Constructor & Destructor Documentation

◆ argumentnull_error() [1/2]

argumentnull_error ( const std::string &  parm,
const std::string &  what_arg 
)
inline

Constructor.

Parameters
parmThe parameter that was null.
what_argSpecific message indicating the problem.

Definition at line 28 of file argumentnull_error.h.

◆ argumentnull_error() [2/2]

argumentnull_error ( const char *  parm,
const char *  what_arg 
)
inline

Constructor.

Parameters
parmThe parameter that was null.
what_argSpecific message indicating the problem.

Definition at line 39 of file argumentnull_error.h.

Member Function Documentation

◆ parameter()

std::string parameter ( )
inline

Retrieve the parameter associated with the exception.

Returns
Returns a string containing the name of the parameter.

Definition at line 49 of file argumentnull_error.h.

References argumentnull_error::_parameter.

Member Data Documentation

◆ _parameter

std::string _parameter
private

Definition at line 21 of file argumentnull_error.h.

Referenced by argumentnull_error::parameter().


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