gVirtualXRay  2.0.10
VirtualX-RayImagingLibraryonGPU
Public Member Functions | Protected Attributes
gVirtualXRay::Exception Class Reference

Exception is a class to handle exceptions. More...

#include <Exception.h>

Inheritance diagram for gVirtualXRay::Exception:
Inheritance graph
Collaboration diagram for gVirtualXRay::Exception:
Collaboration graph

Public Member Functions

 Exception (const char *aFileName=0, const char *aFunctionName=0, int anErrorLine=0, const char *anErrorMessage=0)
 Default constructor. More...
 
 Exception (const char *aFileName, const char *aFunctionName, int anErrorLine, const std::string &anErrorMessage)
 Constructor. More...
 
virtual ~Exception () throw ()
 Destructor. More...
 
virtual const char * what () const throw ()
 Accessor on the error message. More...
 

Protected Attributes

std::string m_error_message
 The error message. More...
 

Detailed Description

Exception is a class to handle exceptions.

Definition at line 109 of file Exception.h.

Constructor & Destructor Documentation

◆ Exception() [1/2]

gVirtualXRay::Exception::Exception ( const char *  aFileName = 0,
const char *  aFunctionName = 0,
int  anErrorLine = 0,
const char *  anErrorMessage = 0 
)
inline

Default constructor.

Parameters
aFileNamename of the source file where the exception was thrown (default value: 0)
aFunctionNamename of the function where the exception was thrown (default value: 0)
anErrorLinename at which the exception was thrown (default value: 0)
anErrorMessageerror message corresponding to the exception (default value: 0)

Definition at line 91 of file Exception.inl.

◆ Exception() [2/2]

gVirtualXRay::Exception::Exception ( const char *  aFileName,
const char *  aFunctionName,
int  anErrorLine,
const std::string &  anErrorMessage 
)
inline

Constructor.

Parameters
aFileNamename of the source file where the exception was thrown
aFunctionNamename of the function where the exception was thrown
anErrorLinename at which the exception was thrown
anErrorMessageerror message corresponding to the exception

Definition at line 118 of file Exception.inl.

◆ ~Exception()

gVirtualXRay::Exception::~Exception ( )
throw (
)
inlinevirtual

Destructor.

Definition at line 137 of file Exception.inl.

Member Function Documentation

◆ what()

const char * gVirtualXRay::Exception::what ( ) const
throw (
)
inlinevirtual

Accessor on the error message.

Returns
the error message

Definition at line 143 of file Exception.inl.

Field Documentation

◆ m_error_message

std::string gVirtualXRay::Exception::m_error_message
protected

The error message.

Definition at line 168 of file Exception.h.


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