This is an exception class thrown by the streaming framework.
This exception signals that an object alias read from an IDataStream refers to non-existent data. This is an internal consistency check; a failure generally indicates that the stream data has been corrupted, or that some other serious progamming error has occured.
Use the destructor to destroy instances of IInvalidContextNumber. Instances are only constructed by the streaming implementation code, never by application code.
![]() |
public:
virtual ~IInvalidContextNumber()
Destroys the exception object.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
Constructors for the class.
public:
IInvalidContextNumber( const char* text = 0, long errorID = 0, Severity severity = recoverable )
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
IInvalidContextNumber(const IInvalidContextNumber& other)
The copy constructor is provided so that the compiler can make copies of the object during the throwing of an exception.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use these members to determine the name (type) of the exception. This is used for logging out an exception object's error information.
![]() |
public:
virtual const char* name() const
Gets the name of the exception class. This function is used to access class data.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
virtual ~IException()
virtual IException& addLocation( const IExceptionLocation& location )
IException& appendText(const char* errorText)
static void assertParameter( const char* exceptionText, IExceptionLocation location )
ErrorCodeGroup errorCodeGroup() const
unsigned long errorId() const
IException( const char* errorText, unsigned long errorId = 0, Severity severity = IException::unrecoverable )
IException(const IException& exception)
virtual int isRecoverable() const
const IExceptionLocation* locationAtIndex( unsigned long locationIndex ) const
unsigned long locationCount() const
virtual IException& logExceptionData()
IException& setErrorCodeGroup(ErrorCodeGroup errorGroup)
IException& setErrorId(unsigned long errorId)
IException& setSeverity(Severity severity)
IException& setText(const char* errorText)
static IException::TraceFn* setTraceFunction( IException::TraceFn& traceFunction )
virtual void terminate()
const char* text(unsigned long indexFromTop = 0) const
unsigned long textCount() const
static ErrorCodeGroup const baseLibrary
static ErrorCodeGroup const CLibrary
static ErrorCodeGroup const operatingSystem
static ErrorCodeGroup const other
static ErrorCodeGroup const presentationSystem