North State Framework in C#  V3.0.0
An object-oriented framework for implementing UML state machines.
Static Public Member Functions | Static Public Attributes | List of all members
NSFExceptionHandler Class Reference

Represents a global exception handler through which clients can receive notification of runtime exceptions. More...

Static Public Member Functions

static void handleException (NSFExceptionContext context)
 Global exception handling method. More...
 

Static Public Attributes

static NSFVoidActions
< NSFExceptionContext
ExceptionActions = new NSFVoidActions<NSFExceptionContext>()
 Actions to execute when an exception is thrown. More...
 

Detailed Description

Represents a global exception handler through which clients can receive notification of runtime exceptions.

Register exception actions with this class to receive notification of any runtime exception caught by the North State Framework.

Member Function Documentation

static void handleException ( NSFExceptionContext  context)
static

Global exception handling method.

Parameters
contextAdditional contextual information.

All exceptions are ultimately routed to this method. It logs the exception to the trace log, saves the trace log if a file name has been set, and executes any exception actions.

Member Data Documentation

NSFVoidActions<NSFExceptionContext> ExceptionActions = new NSFVoidActions<NSFExceptionContext>()
static

Actions to execute when an exception is thrown.




Copyright 2004-2014, North State Software, LLC. All rights reserved.