Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
TStandardException
Inherited By:
None.
Purpose:
TWindowException derives from TStandardException and provides exception handling for classes interacting with windows and window layers. This class publicly defines an enumerated type containing all of the supported exception types for windows and window layers. Use the member function GetCause to query a TWindowException object for the type of error that caused the exception. The cause of a TWindowException object can only be set during construction.
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
Rarely derive.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
- TWindowException (ECause)
- TWindowException (const TWindowException &)
- TWindowException ()
Interface Category:
API.
Purpose:
- Creates a TWindowException object and initializes it with the specified ECause value. A TWindowException's cause can only be set with this constructor.
- Copy constructor.
- Default constructor.
Calling Context:
- You can call this function directly.
- Called to copy an object.
- Called by the stream-in operators.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
~ TWindowException ()
Interface Category:
API.
Purpose:
Destructor.
Calling Context:
Called to destroy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
TWindowException & operator =(const TWindowException &)
Interface Category:
API.
Purpose:
Assignment operator.
Calling Context:
Call this function by using the operator in an assignment statement.
Parameters:
Return Value:
A non-const reference to the left-hand side object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
ECause GetCause () const
Interface Category:
API.
Purpose:
GetCause returns the type of error that caused this exception. GetCause returns a value of the enumerated type ECause defined by this class.
Calling Context:
You can call this function directly.
Parameters:
Return Value:
Returns an ECause value indicating the error type that caused this exception.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void Throw () const
Interface Category:
API.
Purpose:
Throws this exception object.
Calling Context:
Called during exception propagation between processes. Clients should not call directly.
Parameters:
Return Value:
None.
Exceptions:
Throws this exception.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TStream & operator <<= (TStream &)
Interface Category:
API.
Purpose:
Stream-in operator.
Calling Context:
Called to stream in data.
Parameters:
Return Value:
Returns a reference to the stream the object streams itself in from.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TStream & operator >>=(TStream &) const
Interface Category:
API.
Purpose:
Stream-out operator.
Calling Context:
Called to stream out data.
Parameters:
Return Value:
Returns a reference to the stream the object streams itself out to.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.