NeXus  4.4.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | List of all members
NeXus::Exception Class Reference

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

#include <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 21 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 13 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 27 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 23 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 19 of file NeXusException.cpp.


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