Jpp
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
JLANG::JForkException Class Reference

Exception for creation of fork. More...

#include <JException.hh>

Inheritance diagram for JLANG::JForkException:
JLANG::JException

Public Member Functions

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

Static Public Member Functions

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

Private Attributes

const std::string buffer
 

Detailed Description

Exception for creation of fork.

Definition at line 486 of file JException.hh.

Constructor & Destructor Documentation

◆ JForkException()

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

Constructor.

Parameters
errorerror message

Definition at line 495 of file JException.hh.

495  :
496  JException(error)
497  {}

Member Function Documentation

◆ what()

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

Get error message.

Returns
error message

Definition at line 48 of file JException.hh.

49  {
50  return buffer.c_str();
51  }

◆ getOstream()

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  }

Member Data Documentation

◆ buffer

const std::string JLANG::JException::buffer
privateinherited

Definition at line 83 of file JException.hh.


The documentation for this class was generated from the following file:
JLANG::JException::JException
JException(const std::string &error)
Constructor.
Definition: JException.hh:30
JLANG::JException::buffer
const std::string buffer
Definition: JException.hh:83