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.
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.
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.
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.
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 }
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().
00051 { 00052 return(myStatus.getStatusMessage()); 00053 }