Jive reference manual
List of all members | Public Member Functions
jem::Exception Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

jem::Exception::Exception ( const String place = String(),
const String msg = String() 
)
explicit

Constructs an Exception given a context and message string.

Parameters
place- a string describing where this exception was thrown.
msg- a string decribing why this exception was thrown.

Member Function Documentation

virtual String jem::Exception::name ( ) const
virtual