CFx SDK Documentation  2023 SP0
Public Member Functions | List of all members
OdError Class Reference

#include <OdError.h>

Inheritance diagram for OdError:
AECError OdBrException OdDAI::BaseException OdError_DuplicateRecordName OdError_DwgObjectImproperlyRead OdError_FileException OdError_GeNotImplemted OdError_InvalidIndex OdError_InvalidKey OdError_InvalidResBuf OdError_InvalidSysvarValue OdError_InvalidVariantType OdError_ModelSpaceSysvar OdError_NotThatKindOfClass OdError_UnknownSysvar OdError_WithId OdError_XdataSizeExceeded OdOleStorageError TxError

Public Member Functions

void setContext (OdErrorContext *pErrorContext)
 
const OdErrorContextcontext () const
 
OdErrorContextcontext ()
 
 OdError (OdResult code)
 
 OdError (const OdError &source)
 
 OdError (OdErrorContext *pErrorContext)
 
 OdError (const OdString &errorMessage)
 
 OdError (const OdString &errorMessage, const OdError &previousError)
 
 ~OdError ()
 
OdErroroperator= (const OdError &source)
 
OdResult code () const
 
OdString description () const
 
void attachPreviousError (const OdError &previousError)
 
 FX_DECLARE_CLANG_RTTI_EXCEPTION_WORKAROUND ()
 

Detailed Description

This class implement OdError node objects in an OdErrorNode stack..

Remarks
Each Error object points to the previous Error object in the stack.

Corresponding C++ library: TD_Root <group Error_Classes>

Definition at line 42 of file OdError.h.

Constructor & Destructor Documentation

◆ OdError() [1/5]

OdError::OdError ( OdResult  code)
explicit
Parameters
code[in] Error code.

◆ OdError() [2/5]

OdError::OdError ( const OdError source)

◆ OdError() [3/5]

OdError::OdError ( OdErrorContext pErrorContext)
explicit
Parameters
pErrorContext[in] Pointer to the ErrorContext.

◆ OdError() [4/5]

OdError::OdError ( const OdString errorMessage)
explicit
Parameters
errorMessage[in] Error message.

◆ OdError() [5/5]

OdError::OdError ( const OdString errorMessage,
const OdError previousError 
)
Parameters
previousError[in] Previous Error object.

◆ ~OdError()

OdError::~OdError ( )

Member Function Documentation

◆ attachPreviousError()

void OdError::attachPreviousError ( const OdError previousError)

Sets the Error object previous to this one in this Error stack.

Parameters
previousError[in] Previous Error object.

◆ code()

OdResult OdError::code ( ) const

Returns the OdResult code of this Error object.

◆ context() [1/2]

OdErrorContext* OdError::context ( )

◆ context() [2/2]

const OdErrorContext* OdError::context ( ) const

◆ description()

OdString OdError::description ( ) const

Returns the description of this Error object.

◆ FX_DECLARE_CLANG_RTTI_EXCEPTION_WORKAROUND()

OdError::FX_DECLARE_CLANG_RTTI_EXCEPTION_WORKAROUND ( )

◆ operator=()

OdError& OdError::operator= ( const OdError source)

◆ setContext()

void OdError::setContext ( OdErrorContext pErrorContext)

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