|
OpenTop 1.3 | |||||
| PREV EXCEPTION NEXT EXCEPTION | FRAMES NO FRAMES | Cross-Platform C++ | ||||
| SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD | |||||
#include "ot/base/Exception.h"

try
{
// open a FileInputStream (may throw a FileNotFoundException)
RefPtr<FileInputStream> rpFIS = new FileInputStream(OT_T("test.txt"));
}
catch(Exception& e)
{
std::err << StringUtils::ToAscii(e.toString()) << std::endl;
}
| Constructor/Destructor Summary | |
Exception()Constructs an Exception without any additional message description. | |
Exception(const String& message)Constructs an Exception with a description message. | |
~Exception()Virtual destructor. | |
| Method Summary | |
String |
getDescription() constReturns a description of this Exception type. |
virtual String |
getExceptionType() constReturns the class name as a String. |
virtual String |
getLocalizedDescription() constReturns a localized description of the Exception type or, if a native language translation is unavailable, an empty string. |
virtual String |
getMessage() constReturns the message text for this Exception. |
protected void |
setMessage(const String& message)Sets the message text for an Exception. |
virtual String |
toString() constReturns a string representation of this Exception. |
| Constructor/Destructor Detail |
Exception()
Exception(const String& message)
message - virtual ~Exception()
| Method Detail |
String getDescription() const
virtual String getExceptionType() const
virtual String getLocalizedDescription() const
virtual String getMessage() const
protected void setMessage(const String& message)
message - virtual String toString() const
|
OpenTop 1.3 | |||||
| PREV EXCEPTION NEXT EXCEPTION | FRAMES NO FRAMES | Cross-Platform C++ | ||||
| SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD | |||||