Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

Loris::Exception Class Reference

Exception is a generic exception class for reporting exceptional circumstances in Loris. More...

#include <Exception.h>

Inheritance diagram for Loris::Exception:

Loris::AssertionFailure Loris::IndexOutOfBounds Loris::InvalidArgument Loris::InvalidObject Loris::RuntimeError Loris::InvalidIterator Loris::InvalidPartial Loris::FileIOException List of all members.

Public Member Functions

 Exception (const std::string &str, const std::string &where="")
 string automatically using __FILE__ and __LINE__.

virtual ~Exception (void) throw ()
 Destroy this Exception.

const char * what (void) const throw ()
 C-style string (char pointer).

Exceptionappend (const std::string &str)
 Append the specified string to this Exception's description, and return a reference to this Exception.

const std::string & str (void) const
 Return a read-only refernce to this Exception's description string.


Protected Attributes

std::string _sbuf
 string for storing the exception description


Detailed Description

Exception is a generic exception class for reporting exceptional circumstances in Loris.

Exception is derived from std:exception, and is the base for a hierarchy of derived exception classes in Loris.


Constructor & Destructor Documentation

Loris::Exception::Exception const std::string &  str,
const std::string &  where = ""
 

string automatically using __FILE__ and __LINE__.

Parameters:
str is a string describing the exceptional condition
where is an option string describing the location in the source code from which the exception was thrown (generated automatically by the Throw macro).


Member Function Documentation

Exception& Loris::Exception::append const std::string &  str  ) 
 

Append the specified string to this Exception's description, and return a reference to this Exception.

Parameters:
str is text to append to the exception description
Returns:
a reference to this Exception.

const std::string& Loris::Exception::str void   )  const
 

Return a read-only refernce to this Exception's description string.

Returns:
a string describing the exceptional condition

const char* Loris::Exception::what void   )  const throw ()
 

C-style string (char pointer).

Overrides std::exception::what.

Returns:
a C-style string describing the exceptional condition.


Generated on Thu Apr 14 22:01:56 2005 for Loris by doxygen 1.3.4