Jpp  17.3.0-rc.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
JLANG::JFileReadException Class Reference

Exception for reading of file. More...

#include <JException.hh>

Inheritance diagram for JLANG::JFileReadException:
JLANG::JException

Public Member Functions

 JFileReadException (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 reading of file.

Definition at line 378 of file JException.hh.

Constructor & Destructor Documentation

JLANG::JFileReadException::JFileReadException ( const std::string error)
inline

Constructor.

Parameters
errorerror message

Definition at line 387 of file JException.hh.

387  :
388  JException(error)
389  {}
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: