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