Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JException.hh File Reference

Exceptions. More...

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

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

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

Macros

#define MAKE_EXCEPTION(JException_t, A)
 Make exception.
 
#define THROW(JException_t, A)
 Marco for throwing exception with std::ostream compatible message.
 

Detailed Description

Exceptions.

Author
mdejong

Definition in file JException.hh.

Macro Definition Documentation

◆ MAKE_EXCEPTION

#define MAKE_EXCEPTION ( JException_t,
A )
Value:
JException_t(static_cast<std::ostringstream&>(JLANG::JException::getOstream() << JLANG::JException::getDateAndTime() << ' ' << __FILE__ << ':' << __LINE__ << std::endl << A).str())
static std::ostream & getOstream()
Get output stream for conversion of exception.
Definition JException.hh:89
static std::string getDateAndTime()
Get date and time [UTC].
Definition JException.hh:31

Make exception.

Parameters
JException_texception
Amessage

Definition at line 703 of file JException.hh.

◆ THROW

#define THROW ( JException_t,
A )
Value:
do { throw MAKE_EXCEPTION(JException_t, A); } while(0)
#define MAKE_EXCEPTION(JException_t, A)
Make exception.

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

Parameters
JException_texception
Amessage

Definition at line 712 of file JException.hh.