Chapter Contents

Previous

Next
Handling Exceptions in SAS/C

Exception Diagnostics

To facilitate problem diagnosis, the exception handling mechanism will issue library warning LSCX252 before calling a terminate handler. Also, an xtrace(0) traceback is dumped before calling the default terminate handler. The behavior of calling xtrace(0) can be overridden by providing a new terminate handler with std::set_terminate.

The exception handling mechanism will also issue an LSCX253 warning before calling the terminate handler in other circumstances. The message is issued when a rethrow is requested but there is no currently handled exception. In such a circumstance, no unwinding has occurred, so LSCX252 and the xtrace information is not output. The LSCX253 warning will also be issued when an uncaught exception is being processed and a user function called by the exception handling mechanism exits by way of an exception.


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.