Jive reference manual
|
Provides a single superclass for all exceptions that a program should catch. More...
#include <jem/base/Exception.h>
Inherits jem::Throwable.
Inherited by jem::ArithmeticException, jem::gl::DisplayException, jem::gl::GLException, jem::gl::TextureException, jem::hdf5::H5Exception, jem::IllegalInputException, jem::IllegalOperationException, jem::InstantiationException, jem::io::IOException, jem::mp::DriverException, jem::numeric::FuncException, jem::SystemException, jem::util::DateException, jem::util::PropertyException, jive::fem::MeshCutter::Exception, jive::model::ActionException, jive::solver::SolverException, jive::util::ItemIDException, and jive::util::TableException.
Public Member Functions | |
Exception (const String &place=String(), const String &msg=String()) | |
Creates an Exception instance. More... | |
virtual String | name () const |
Returns the class name of this exception. More... | |
Public Member Functions inherited from jem::Throwable | |
Throwable (const String &place=String(), Const String &msg=String()) | |
Creates a new Throwable instance. More... | |
Throwable (const Throwable &rhs) | |
Creates a copy of another Throwable instance. More... | |
~Throwable () | |
Destructor. More... | |
virtual String | where () const |
Returns a string describing the context in which this Throwable was thrown. More... | |
virtual String | what () const |
Returns a string describing why this Throwable was thrown. More... | |
As in Java, the Exception
class and its derived classes signal error conditions that a reasonable program should catch and deal with. If a function may throw an object derived from the Exception
class, this should be specified in the documentation of that function.
|
explicit |
Constructs an Exception given a context and message string.
place | - a string describing where this exception was thrown. |
msg | - a string decribing why this exception was thrown. |
|
virtual |
Returns the full class name – including namespaces – of this Throwable
instance. This function should be overriden by derived classes. For instance, a class named flip::FlopException
should return the string "flip::FlopException"
.
Reimplemented from jem::Throwable.
Reimplemented in jive::fem::MeshCutter::Exception, jive::solver::SolverException, jem::util::PropertyException, jem::ParseException, jem::io::IOException, jive::solver::IterativeSolverException, jive::model::ActionException, jive::util::ItemIDException, jem::gl::GLException, jem::hdf5::H5Exception, jem::xml::ParserException, jem::gl::TextureException, jive::util::TableException, jem::gl::DisplayException, jem::io::EOFException, jem::io::FileOpenException, jem::io::IOverflowException, jem::io::SerializationException, jem::io::SyncFailedException, jem::io::ZipException, jem::numeric::FuncException, jem::mp::DriverException, jem::util::DateException, jem::ArithmeticException, jem::IllegalInputException, jem::IllegalOperationException, jem::InstantiationException, jem::OutOfMemoryException, and jem::SystemException.