SourcePro : Internationalization Module User’s Guide : Conversion : Explicit Conversions : Saving and Restoring the Error Response State
Saving and Restoring the Error Response State
Both RWUToUnicodeConverter and RWUFromUnicodeConverter provide saveErrorResponseState() methods that save the current error handling state of a converter using RWUToUnicodeConverter::ErrorResponseState and RWUFromUnicodeConverter::ErrorResponseState. You can use these methods to save the current error response state prior to calling setErrorResponse(). (See Conversion Errors.) The provided restoreErrorResponseState() methods restore the saved state. For example:
 
RWUToUnicodeConverter converter;
RWUToUnicodeConverter::ErrorResponseState state =
converter.saveErrorResponse();
converter.setErrorResponseState(RWUToUnicodeConverter::Stop);
converter.restoreErrorResponseState(state);
NOTE: The saved state from one converter may be used to set the state on another converter. However, this operation may not be safe in future versions of the Internationalization Module.