hpp::Exception Class Reference

Main exception class for HPP. More...

#include <hpp/util/exception.hh>

Inheritance diagram for hpp::Exception:
Collaboration diagram for hpp::Exception:

List of all members.

Public Member Functions

 Exception (const std::string &message, const std::string &file, unsigned line) throw ()
 ~Exception () throw ()
 Exception (const Exception &exception) throw ()
Exceptionoperator= (const Exception &exception) throw ()
virtual const char * what () const throw ()
virtual std::ostream & print (std::ostream &o) const throw ()
 Display the exception on the specified output stream.

Detailed Description

Main exception class for HPP.

All exceptions thrown in HPP must inherit this class.


Constructor & Destructor Documentation

hpp::Exception::Exception ( const std::string &  message,
const std::string &  file,
unsigned  line 
) throw ()

References hppDout.

hpp::Exception::~Exception ( ) throw ()
hpp::Exception::Exception ( const Exception exception) throw ()

Member Function Documentation

Exception & hpp::Exception::operator= ( const Exception exception) throw ()
std::ostream & hpp::Exception::print ( std::ostream &  o) const throw () [virtual]

Display the exception on the specified output stream.

Parameters:
ooutput stream used for display
Returns:
output stream

Referenced by hpp::operator<<().

const char * hpp::Exception::what ( ) const throw () [virtual]