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

General exception. More...

#include <JException.hh>

Inheritance diagram for JLANG::JException:
JLANG::JCastException JLANG::JControlHostException JLANG::JDictionaryDuplicateEntry JLANG::JDictionaryEntryNotFound JLANG::JDivisionByZero JLANG::JEmptyCollection JLANG::JEndOfFile JLANG::JFileOpenException JLANG::JFileReadException JLANG::JForkException JLANG::JIndexOutOfRange JLANG::JIOException JLANG::JMallocException JLANG::JNewException JLANG::JNoValue JLANG::JNullPointerException JLANG::JNumericalPrecision JLANG::JParseError JLANG::JParserException JLANG::JPipeOpenException JLANG::JPointerException JLANG::JPropertiesException JLANG::JProtocolException JLANG::JRunTimeException JLANG::JSelectException JLANG::JSocketChannelException JLANG::JSocketException JLANG::JSystemException JLANG::JTypeInformationException JLANG::JValueOutOfRange

Public Member Functions

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

Private Attributes

const std::string buffer
 

Friends

std::ostream & operator<< (std::ostream &out, const JException &exception)
 Print error message of JException. More...
 

Detailed Description

General exception.

Definition at line 40 of file JException.hh.

Constructor & Destructor Documentation

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

Constructor.

Parameters
errorerror message

Definition at line 47 of file JException.hh.

47  :
48  std::exception(),
49  buffer(error)
50  {}
const std::string buffer
Definition: JException.hh:83
JLANG::JException::~JException ( )
throw (
)
inline

Destructor.

Definition at line 56 of file JException.hh.

57  {}

Member Function Documentation

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

Get error message.

Returns
error message

Definition at line 65 of file JException.hh.

66  {
67  return buffer.c_str();
68  }
const std::string buffer
Definition: JException.hh:83

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const JException exception 
)
friend

Print error message of JException.

Parameters
outoutput stream
exceptionexception

Definition at line 77 of file JException.hh.

78  {
79  return out << exception.what();
80  }
virtual const char * what() const
Get error message.
Definition: JException.hh:65

Member Data Documentation

const std::string JLANG::JException::buffer
private

Definition at line 83 of file JException.hh.


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