Error Class Reference
[PEARL.base]

Base class for exceptions related to the PEARL library. More...

#include <Error.h>

Inheritance diagram for Error:

FatalError RuntimeError

List of all members.

Public Member Functions

Constructors & destructor
 Error (const std::string &message)
virtual ~Error () throw ()
Get error message
virtual const char * what () const throw ()

Protected Attributes

std::string m_message
 Error message


Detailed Description

The class Error serves as a base class for all exceptions related to the PEARL library. It provides a method to obtain an error message, which in most cases will deliver the name of the internal operation that failed.

Constructor & Destructor Documentation

Error ( const std::string &  message  ) 

Creates a new instance and sets the error description to the given message.

Parameters:
message Error description

~Error (  )  throw () [virtual]

Destructor. Destroys the instance.


Member Function Documentation

const char * what (  )  const throw () [virtual]

Returns a description of the error condition encountered.

Returns:
Error description


SCALASCA    Copyright © 1998–2009 Forschungszentrum Jülich, Jülich Supercomputing Centre