hpp-util  4.9.0
Debugging tools for the HPP project.
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:

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

Detailed Description

Main exception class for HPP.

All exceptions thrown in HPP must inherit this class.

Constructor & Destructor Documentation

◆ Exception() [1/2]

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

◆ ~Exception()

hpp::Exception::~Exception ( )
throw (
)

◆ Exception() [2/2]

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

Member Function Documentation

◆ operator=()

Exception & hpp::Exception::operator= ( const Exception exception)
throw (
)

◆ print()

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

◆ what()

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

The documentation for this class was generated from the following files: