NeXus  1
Public Member Functions | List of all members
NeXus::Exception Class Reference

Class that provides for a standard NeXus exception. More...

#include <bindings/cpp/NeXusException.hpp>

Inheritance diagram for NeXus::Exception:
Inheritance graph
Collaboration diagram for NeXus::Exception:
Collaboration graph

Public Member Functions

 Exception (const std::string &msg="GENERIC ERROR", const int status=0)
 Create a new NeXus::Exception. More...
 
virtual const char * what () const throw ()
 Get the message associated with the exception. More...
 
int status () throw ()
 Get the status associated with the exception. More...
 
virtual ~Exception () throw ()
 Destructor for exception. More...
 

Detailed Description

Class that provides for a standard NeXus exception.

Definition at line 20 of file NeXusException.hpp.

Constructor & Destructor Documentation

NeXus::Exception::Exception ( const std::string &  msg = "GENERIC ERROR",
const int  status = 0 
)

Create a new NeXus::Exception.

Parameters
msgthe string to pass a the error message
status

Definition at line 12 of file NeXusException.cpp.

References status().

Here is the call graph for this function:

NeXus::Exception::~Exception ( )
throw (
)
virtual

Destructor for exception.

Definition at line 26 of file NeXusException.cpp.

Member Function Documentation

int NeXus::Exception::status ( )
throw (
)

Get the status associated with the exception.

Returns
the status value associated with the exception

Definition at line 22 of file NeXusException.cpp.

Referenced by Exception().

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

Get the message associated with the exception.

Returns
the message associated with the exception

Definition at line 18 of file NeXusException.cpp.


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