Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
JLANG::JPointerException Class Reference

Exception for accessing an invalid pointer. More...

#include <JException.hh>

Inheritance diagram for JLANG::JPointerException:
JLANG::JException

Public Member Functions

 JPointerException (const std::string &error)
 Constructor. More...
 
virtual const char * what () const override throw ()
 Get error message. More...
 

Static Public Member Functions

static std::ostream & getOstream ()
 Get output stream for conversion of exception. More...
 

Detailed Description

Exception for accessing an invalid pointer.

Definition at line 108 of file JException.hh.

Constructor & Destructor Documentation

JLANG::JPointerException::JPointerException ( const std::string &  error)
inline

Constructor.

Parameters
errorerror message

Definition at line 117 of file JException.hh.

117  :
118  JException(error)
119  {}
JException(const std::string &error)
Constructor.
Definition: JException.hh:30

Member Function Documentation

virtual const char* JLANG::JException::what ( ) const
throw (
)
inlineoverridevirtualinherited

Get error message.

Returns
error message

Definition at line 48 of file JException.hh.

49  {
50  return buffer.c_str();
51  }
const std::string buffer
Definition: JException.hh:83
static std::ostream& JLANG::JException::getOstream ( )
inlinestaticinherited

Get output stream for conversion of exception.

Note that the ostream is emptied before use.

Returns
ostream

Definition at line 73 of file JException.hh.

74  {
75  static std::ostringstream buffer;
76 
77  buffer.str("");
78 
79  return buffer;
80  }
const std::string buffer
Definition: JException.hh:83

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