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


Platform::Runtime
Class ErrorHandler

NonCopyableType
   |
   +-ErrorHandler

Implemented in:
Platform.Runtime.ErrorHandler.h

class ErrorHandler:
private NonCopyableType

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

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

Constructor Summarycollapse
ErrorHandler(ErrorFunction handler = Null)
          Preserves the currently installed global error handler and installs the specified one for the current scope.
~ErrorHandler()
          Restores the global error handler to the previously saved state.

 

Constructor Detail

ErrorHandler[nothrow, inline]

ErrorHandler(ErrorFunction handler = Null)

Preserves the currently installed global error handler and installs the specified one for the current scope. If the handler parameter is Null the default (built-in) platform error handler is installed.

Parameters:
handler - the error handler function

~ErrorHandler[nothrow, inline]

~ErrorHandler()

Restores the global error handler to the previously saved state.



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