oaException Class Reference

Inheritance diagram for oaException:

oaCompatibilityError oaDesignException oaDMException oaError oaMemoryError oaOSError oaSocketError oaTechException oaWaferException


Public Methods

virtual ~oaException ()
oaUInt4 getMsgId () const
const oaStringgetMsg () const

Static Public Methods

oaUInt8 getLastOSError ()

Protected Methods

virtual const oaStringgetFormatString () const
void format (va_list &args)

Static Protected Methods

oaUInt4 getOSErrorStr (oaString &errStr)

Detailed Description

The oaException class implements various types of exception objects the OpenAccess system can throw. The symbols for the possible message IDs are defined in an enum for each package. The enums are:

Applications should use the oaException class to catch all the exceptions thrown by the database.


Constructor & Destructor Documentation

oaException::~oaException   [inline, virtual]
 

This is the destructor for the oaException object.


Member Function Documentation

void oaException::format va_list &    args [protected]
 

This is a utility function that formats a message from a variable length list of arguments. A message with ID msgId is generated and is stored in msg.

const oaString & oaException::getFormatString   const [protected, virtual]
 

This function returns the appropriate formatting string for this exception.

Reimplemented in oaDesignException, oaDMException, oaTechException, and oaWaferException.

oaUInt8 oaException::getLastOSError   [static]
 

This function returns the error code of the last error reported by the operating system.

const oaString & oaException::getMsg   const [inline]
 

This function returns the message for the current exception, which can contain object names or other data for this specific occurrence of the exception.

oaUInt4 oaException::getMsgId   const [inline]
 

This function returns an integer for the current type of exception.

oaUInt4 oaException::getOSErrorStr oaString &    errStr [static, protected]
 

This function returns the OS error string in errStr for the current exception.


The documentation for this class was generated from the following files:

Return to top of page