ot
class OSException
#include "ot/base/OSException.h"
Thrown when OpenTop makes a system call which results in an unexpected return code.
Constructor/Destructor Summary |
OSException()
Protected default constructor. |
OSException(long errCode)
Constructs a OSException with a system error code which is used to retrieve an operating system error message. |
OSException(long errCode, const String& message)
Constructs a OSException with a system error code and additional message. |
Method Summary
|
long |
getErrorCode() const
Returns the system error code that gave rise to the exception. |
virtual String |
getExceptionType() const
Returns the class name as a String. |
Constructor/Destructor Detail |
OSException
protected OSException()
-
Protected default constructor.
OSException
OSException(long errCode)
-
Constructs a OSException with a system error code which is used to retrieve an operating system error message.
- Parameters:
errCode
-
the system error code that gave rise to the exception
OSException
OSException(long errCode,
const String& message)
-
Constructs a OSException with a system error code and additional message.
The error code is used to retrieve an operating system error message.
- Parameters:
errCode
-
the system error code that gave rise to the exception
message
-
further detail
getErrorCode
long getErrorCode() const
-
Returns the system error code that gave rise to the exception.
getExceptionType
virtual String getExceptionType() const
-
Returns the class name as a String.
This method should be overridden in all derived classes to return the name of the derived class.
- See also:
-
getDescription()
Found a bug or missing feature? Please email us at support@elcel.com