Go to the documentation of this file. 1 #ifndef __JLANG__JEXCEPTION__
2 #define __JLANG__JEXCEPTION__
16 namespace JPP {
using namespace JLANG; }
29 static std::ostringstream buffer;
65 virtual const char*
what()
const throw()
79 return out << exception.
what();
669 #define THROW(JException_t, A) do { throw JException_t(static_cast<std::ostringstream&>(JLANG::getOstream() << __FILE__ << ':' << __LINE__ << std::endl << A).str()); } while(0)
JNoValue(const std::string &error)
Constructor.
JMallocException(const std::string &error)
Constructor.
JSocketException(const std::string &error)
Constructor.
Exception for accessing an index in a collection that is outside of its range.
Exception when parsing a value.
JSelectException(const std::string &error)
Constructor.
JPropertiesException(const std::string &error)
Constructor.
friend std::ostream & operator<<(std::ostream &out, const JException &exception)
Print error message of JException.
JIOException(const std::string &error)
Constructor.
JControlHostException(const std::string &error)
Constructor.
JFileReadException(const std::string &error)
Constructor.
JDatabaseException(const std::string &error)
Constructor.
Exception for reading of file.
JEndOfFile(const std::string &error)
Constructor.
JDivisionByZero(const std::string &error)
Constructor.
JParseError(const std::string &error)
Constructor.
Exception for missing value.
Exception for ControlHost.
JParserException(const std::string &error)
Constructor.
Exception for an empty collection.
Exception for opening of file.
JException(const std::string &error)
Constructor.
Exception for cast operation.
Exception for system call.
Exception for null pointer operation.
JValueOutOfRange(const std::string &error)
Constructor.
JSocketChannelException(const std::string &error)
Constructor.
JNullPointerException(const std::string &error)
Constructor.
Exception for select call.
JForkException(const std::string &error)
Constructor.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Exception for opening of pipe.
Exception for accessing an invalid pointer.
JSystemException(const std::string &error)
Constructor.
Exception when parsing a value.
Exception for failure of memory allocation.
JRunTimeException(const std::string &error)
Constructor.
JFunctionalException(const std::string &error)
Constructor.
Exception for creation of fork.
JDictionaryDuplicateEntry(const std::string &error)
Constructor.
Exception for missing entry in dictionary.
Exception for accessing a value in a collection that is outside of its range.
JIndexOutOfRange(const std::string &error)
Constructor.
Exception for a functional operation.
std::ostream & getOstream()
Get output stream for conversion of exception.
JProtocolException(const std::string &error)
Constructor.
Exception for parsing value.
Exception for end of file.
Exception for duplicate entry in dictionary.
JNewException(const std::string &error)
Constructor.
Exception for socket channel.
Exception for division by zero.
JDictionaryEntryNotFound(const std::string &error)
Constructor.
JPipeOpenException(const std::string &error)
Constructor.
JPointerException(const std::string &error)
Constructor.
JNumericalPrecision(const std::string &error)
Constructor.
virtual const char * what() const
Get error message.
JFileOpenException(const std::string &error)
Constructor.
JCastException(const std::string &error)
Constructor.
Auxiliary classes and methods for language specific functionality.
Exception for numerical precision error.
Exception for failure of memory allocation.
JEmptyCollection(const std::string &error)
Constructor.