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


Platform::Thread
Class ExceptionHandler

NonCopyableType
   |
   +-ExceptionHandler

Implemented in:
Platform.Thread.h

class ExceptionHandler:
private NonCopyableType

Provides an interface for top level exception handling used by new threads. When a new thread is created using the Thread::Task's constructor, a top level exception handler can be specified for that thread using an instance of ExceptionHandler. If an exception is thrown in a thread and is propagated beyond IRunnable scope the platform will use the specified uncaught exception handler in attempt to handle the exceptions, prior to terminating that thread.

See Also:
Thread::Task, Thread::IRunnable

Constructor Summarycollapse
~ExceptionHandler()
          Destructor.

Method Summarycollapse
Void handle()
          Handle exceptions of any type.
Void handle(Exception& e)
          Handle exceptions of type Exception.

 

Constructor Detail

~ExceptionHandler[virtual, nothrow, inline]

~ExceptionHandler()

Destructor.

 

Method Detail

handle[virtual, nothrow]

Void handle()

Handle exceptions of any type.


handle[virtual, nothrow]

Void handle(Exception& e)

Handle exceptions of type Exception.

Parameters:
e - an uncaught exception


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