Cross-Platform C++

ot
class OSException

#include "ot/base/OSException.h"

ot::RuntimeException ot::Exception 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.

Methods inherited from class ot::Exception
getDescription, getLocalizedDescription, getMessage, setMessage, toString

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

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


Cross-Platform C++

Found a bug or missing feature? Please email us at support@elcel.com

Copyright © 2000-2003 ElCel Technology   Trademark Acknowledgements