C# Class NPlot.ErrorHandler

Error class that (a) adds source of problem. (b) by default throws exception. (c) default behaviour can be overridden.
Exibir arquivo Open project: mono/nplot-gtk

Public Properties

Property Type Description
Instance ErrorHandler

Public Methods

Method Description
ContinuingError ( string message ) : void

Handles a continuing error.

CriticalError ( string message ) : void

Handles a critical error.

Handle ( Level level, string message ) : void

Handles a message of the given level.

Private Methods

Method Description
DebugError ( string message ) : void
ErrorHandler ( ) : System
GetPrepend ( ) : string

Get text to prepend to log message to describe its origin. This is the first place in stack outside Cts.Library.MessageLog.

HandleError ( string message ) : void
NullHandler ( string message ) : void

Method Details

ContinuingError() public method

Handles a continuing error.
public ContinuingError ( string message ) : void
message string message to handle
return void

CriticalError() public method

Handles a critical error.
public CriticalError ( string message ) : void
message string message to handle
return void

Handle() public method

Handles a message of the given level.
public Handle ( Level level, string message ) : void
level Level The message level.
message string The message to handle.
return void

Property Details

Instance public_oe static_oe property

The singular ErrorHandler instance
public static ErrorHandler,NPlot Instance
return ErrorHandler