GlfException Class Reference

GlfException objects should be thrown by functions that operate on Glf files for exceptions. More...

#include <GlfException.h>

Inheritance diagram for GlfException:
Inheritance graph
[legend]
Collaboration diagram for GlfException:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 GlfException ()
 Constructor that sets the exception to a default status and error message.
 GlfException (const std::string &what_arg)
 Constructor that sets the exception to a default status and the specified error message.
 GlfException (GlfStatus::Status status, const std::string &errorMsg)
 Constructor that sets the exception to the specified status and error message.
 GlfException (const GlfStatus &status)
 Constructor that sets the exception to the specified status.
virtual const char * what () const throw ()
 Returns the error message of this exception.

Detailed Description

GlfException objects should be thrown by functions that operate on Glf files for exceptions.

Definition at line 27 of file GlfException.h.


Constructor & Destructor Documentation

GlfException::GlfException (  ) 

Constructor that sets the exception to a default status and error message.

Definition at line 20 of file GlfException.cpp.

References GlfStatus::setStatus(), and GlfStatus::UNKNOWN.

00021     : myStatus()
00022 {
00023     myStatus.setStatus(GlfStatus::UNKNOWN, "Failed operating on a GLF.");
00024 }

GlfException::GlfException ( const std::string &  what_arg  ) 

Constructor that sets the exception to a default status and the specified error message.

Parameters:
what_arg error message associated with this exception.

Definition at line 27 of file GlfException.cpp.

References GlfStatus::setStatus(), and GlfStatus::UNKNOWN.

00028     : myStatus()
00029 {
00030     myStatus.setStatus(GlfStatus::UNKNOWN, errorMsg.c_str());
00031 }

GlfException::GlfException ( GlfStatus::Status  status,
const std::string &  errorMsg 
)

Constructor that sets the exception to the specified status and error message.

Parameters:
status glf status associated with this exception.
errorMsg error message associated with this exception.

Definition at line 33 of file GlfException.cpp.

References GlfStatus::setStatus().

00035     : myStatus()
00036 {
00037     myStatus.setStatus(status, errorMsg.c_str());
00038 }

GlfException::GlfException ( const GlfStatus status  ) 

Constructor that sets the exception to the specified status.

Parameters:
status glf status associated with this exception.

Definition at line 40 of file GlfException.cpp.

References GlfStatus::addError().

00041     : myStatus()
00042 {
00043     myStatus.addError(status);
00044 }


Member Function Documentation

const char * GlfException::what (  )  const throw () [virtual]

Returns the error message of this exception.

Returns:
errror message

Definition at line 50 of file GlfException.cpp.

References GlfStatus::getStatusMessage().

00051 {
00052     return(myStatus.getStatusMessage());
00053 }


The documentation for this class was generated from the following files:
Generated on Wed Nov 17 15:38:32 2010 for StatGen Software by  doxygen 1.6.3