BDE 4.14.0 Production release
|
Provide an exception class for unexternalization operations.
This component defines a simple exception object for testing exceptions during unexternalization operations. The exception object bslx::TestInStreamException
contains information about an unexternalization request, which can be queried by the "catcher" of the exception.
This section illustrates intended use of this component.
In the following example, the bslx::TestInStreamException
object is thrown, caught, and examined. First, set up a try
block and throw the exception with the indication that the exception occurred during unexternalization of an unsigned int
:
Then, catch the exception and verify the indicated cause of the exception: