API Reference > Extension Classes > Windows Classes > ErrorCtx Class
ErrorCtx Class
ErrorCtxErrorCtxErrorCtx
Syntax
C++
class ErrorCtx : public OdErrorContext;

COMErrorCtx.h

This class implements a node in an ErrorContext stack.

Each ErrorContext object points to the previous ErrorContext object in the stack. 

Library: Source code provided.

 
Name 
Description 
 
Throws an error if and only if hResult specifies a failure. 
 
Throws an error with the Win32LastError code if and only if success is false. 
 
code 
Returns the OdResult code of this ErrorContext object. 
 
Returns the description of this ErrorContext object. 
 
fire 
Throws an error for hResult.  
 
Throws an error with the Win32LastError code. 
 
Returns the HRESULT with which this Error Context was initialized. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.