SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND


Platform::Runtime
Class UnexpectedExceptionHandler

NonCopyableType
   |
   +-UnexpectedExceptionHandler

Implemented in:
Platform.Runtime.UnexpectedExceptionHandler.h

class UnexpectedExceptionHandler:
private NonCopyableType

Sets the specified global unexpected exception handler in the current scope. The previously installed error handler is preserved and restored at the end of the scope.

Unexpected exception handler is called by the C++ language run-time when a function with an exception-specification throws an exception that is not listed in the exception-specification.

The default unexpected exception handler uses appAbort to terminate the application.

An unexpected exception handler function must not return.

Remarks:
not thread safe, use with caution in a multithreaded environment

Constructor Summarycollapse
UnexpectedExceptionHandler(std::unexpected_handler handler = defaultHandler)
          Preserves the currently installed global unexpected exception handler and installs the specified one for the current scope.
~UnexpectedExceptionHandler()
          Restores the global unexpected exception handler to the previously saved state.

 

Constructor Detail

UnexpectedExceptionHandler[nothrow, inline]

UnexpectedExceptionHandler(std::unexpected_handler handler = defaultHandler)

Preserves the currently installed global unexpected exception handler and installs the specified one for the current scope.

Parameters:
handler - the unexpected exception handler function

~UnexpectedExceptionHandler[nothrow, inline]

~UnexpectedExceptionHandler()

Restores the global unexpected exception handler to the previously saved state.



SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND