libStatGen Software
1
|
GlfException objects should be thrown by functions that operate on Glf files for exceptions. More...
#include <GlfException.h>
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. |
GlfException objects should be thrown by functions that operate on Glf files for exceptions.
Definition at line 27 of file GlfException.h.
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.
what_arg | error 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.
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().
: myStatus() { myStatus.setStatus(status, errorMsg.c_str()); }
GlfException::GlfException | ( | const GlfStatus & | status | ) |
Constructor that sets the exception to the specified status.
status | glf status associated with this exception. |
Definition at line 40 of file GlfException.cpp.
References GlfStatus::addError().
: myStatus() { myStatus.addError(status); }
const char * GlfException::what | ( | ) | const throw () [virtual] |
Returns the error message of this exception.
Definition at line 50 of file GlfException.cpp.
References GlfStatus::getStatusMessage().
{ return(myStatus.getStatusMessage()); }