libStatGen Software  1
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:
Collaboration diagram for GlfException:

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

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.

    : myStatus()
{
    myStatus.setStatus(GlfStatus::UNKNOWN, "Failed operating on a GLF.");
}
GlfException::GlfException ( const std::string &  what_arg)

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

Parameters:
what_argerror message associated with this exception.

Definition at line 27 of file GlfException.cpp.

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

    : myStatus()
{
    myStatus.setStatus(GlfStatus::UNKNOWN, errorMsg.c_str());
}
GlfException::GlfException ( GlfStatus::Status  status,
const std::string &  errorMsg 
)

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

Parameters:
statusglf status associated with this exception.
errorMsgerror message associated with this exception.

Definition at line 33 of file GlfException.cpp.

References GlfStatus::setStatus().

    : myStatus()
{
    myStatus.setStatus(status, errorMsg.c_str());
}

Constructor that sets the exception to the specified status.

Parameters:
statusglf status associated with this exception.

Definition at line 40 of file GlfException.cpp.

References GlfStatus::addError().

    : myStatus()
{
    myStatus.addError(status);
}

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().

{
    return(myStatus.getStatusMessage());
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends