Jpp  18.0.1-rc.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Macros
JException.hh File Reference

Exceptions. More...

#include <exception>
#include <string>
#include <ostream>
#include <sstream>

Go to the source code of this file.

Classes

class  JLANG::JException
 General exception. More...
 
class  JLANG::JIndexOutOfRange
 Exception for accessing an index in a collection that is outside of its range. More...
 
class  JLANG::JPointerException
 Exception for accessing an invalid pointer. More...
 
class  JLANG::JFunctionalException
 Exception for a functional operation. More...
 
class  JLANG::JEmptyCollection
 Exception for an empty collection. More...
 
class  JLANG::JValueOutOfRange
 Exception for accessing a value in a collection that is outside of its range. More...
 
class  JLANG::JParseError
 Exception for parsing value. More...
 
class  JLANG::JNoValue
 Exception for missing value. More...
 
class  JLANG::JNullPointerException
 Exception for null pointer operation. More...
 
class  JLANG::JCastException
 Exception for cast operation. More...
 
class  JLANG::JNumericalPrecision
 Exception for numerical precision error. More...
 
class  JLANG::JDivisionByZero
 Exception for division by zero. More...
 
class  JLANG::JMallocException
 Exception for failure of memory allocation. More...
 
class  JLANG::JNewException
 Exception for failure of memory allocation. More...
 
class  JLANG::JIOException
 Exception for I/O. More...
 
class  JLANG::JFileOpenException
 Exception for opening of file. More...
 
class  JLANG::JFileRecoveryException
 Exception for recovery of file. More...
 
class  JLANG::JFileReadException
 Exception for reading of file. More...
 
class  JLANG::JEndOfFile
 Exception for end of file. More...
 
class  JLANG::JPipeOpenException
 Exception for opening of pipe. More...
 
class  JLANG::JSelectException
 Exception for select call. More...
 
class  JLANG::JSocketException
 Exception for socket. More...
 
class  JLANG::JControlHostException
 Exception for ControlHost. More...
 
class  JLANG::JSocketChannelException
 Exception for socket channel. More...
 
class  JLANG::JForkException
 Exception for creation of fork. More...
 
class  JLANG::JSystemException
 Exception for system call. More...
 
class  JLANG::JParserException
 Exception when parsing a value. More...
 
class  JLANG::JPropertiesException
 Exception when parsing a value. More...
 
class  JLANG::JDictionaryEntryNotFound
 Exception for missing entry in dictionary. More...
 
class  JLANG::JDictionaryDuplicateEntry
 Exception for duplicate entry in dictionary. More...
 
class  JLANG::JRunTimeException
 Run time exception. More...
 
class  JLANG::JTypeInformationException
 Exception for absence of type information. More...
 
class  JLANG::JProtocolException
 Protocol exception. More...
 
class  JLANG::JDatabaseException
 Database exception. More...
 

Namespaces

 JLANG
 Auxiliary classes and methods for language specific functionality.
 
 JPP
 This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 

Macros

#define MAKE_EXCEPTION(JException_t, A)   JException_t(static_cast<std::ostringstream&>(JLANG::JException::getOstream() << __FILE__ << ':' << __LINE__ << std::endl << A).str())
 Make exception. More...
 
#define THROW(JException_t, A)   do { throw MAKE_EXCEPTION(JException_t, A); } while(0)
 Marco for throwing exception with std::ostream compatible message. More...
 

Detailed Description

Exceptions.

Author
mdejong

Definition in file JException.hh.

Macro Definition Documentation

#define MAKE_EXCEPTION (   JException_t,
  A 
)    JException_t(static_cast<std::ostringstream&>(JLANG::JException::getOstream() << __FILE__ << ':' << __LINE__ << std::endl << A).str())

Make exception.

Parameters
JException_texception
Amessage

Definition at line 687 of file JException.hh.

#define THROW (   JException_t,
  A 
)    do { throw MAKE_EXCEPTION(JException_t, A); } while(0)

Marco for throwing exception with std::ostream compatible message.

Parameters
JException_texception
Amessage

Definition at line 696 of file JException.hh.