NeXus  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions
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

List of all members.

Public Member Functions

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

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: