Athena IO Library
Athena::error::Exception Class Reference

The baseclass for all Exceptions. More...

#include <Exception.hpp>

Inheritance diagram for Athena::error::Exception:
Inheritance graph
Collaboration diagram for Athena::error::Exception:
Collaboration graph

Public Member Functions

 Exception (const std::string &message, const std::string &file, const std::string &function, const int line)
 The constructor for an Exception. More...
 
std::string message () const
 Returns the Error message of the exception. More...
 
std::string file () const
 
std::string function () const
 
int line () const
 
std::string formattedMessage () const
 

Protected Attributes

std::string m_message
 The error message string.
 
std::string m_file
 
std::string m_function
 
int m_line
 
std::string m_exceptionName
 

Detailed Description

The baseclass for all Exceptions.

Do Not use Exception directly, instead create an appropriate Exception class and inherit from this baseclass.

Definition at line 38 of file Exception.hpp.

Constructor & Destructor Documentation

Athena::error::Exception::Exception ( const std::string &  message,
const std::string &  file,
const std::string &  function,
const int  line 
)
inline

The constructor for an Exception.

Parameters
messageThe error message to throw

Definition at line 44 of file Exception.hpp.

Member Function Documentation

std::string Athena::error::Exception::message ( ) const
inline

Returns the Error message of the exception.

Returns
std::string The error message

Definition at line 56 of file Exception.hpp.


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