C# Class Goedel.Debug.Utils

General utility routines to simplify checking of inputs, return values, etc.
Exibir arquivo Open project: hallambaker/Mathematical-Mesh

Public Properties

Property Type Description
OverrideError ErrorReport

Public Methods

Method Description
Assert ( bool Value, string Reason ) : void

Write an error message to the console if the assertion test fails

Assert ( object Value, string Reason ) : void

Write an error message to the console if the assertion test fails

Default ( string Override, string Default ) : string

Returns the override value if non-null and the default value otherwise.

DefaultError ( string Text ) : void

Report error text.

Error ( string Text ) : void

Report error text.

NYI ( ) : void

Not Yet Implemented Error

NYI ( string Item ) : void

Not Yet Implemented Error

Method Details

Assert() public static method

Write an error message to the console if the assertion test fails
public static Assert ( bool Value, string Reason ) : void
Value bool Test value, error asserted if false
Reason string Text describing the reason the error was raised.
return void

Assert() public static method

Write an error message to the console if the assertion test fails
public static Assert ( object Value, string Reason ) : void
Value object Test value, error asserted if null
Reason string Text describing the reason the error was raised.
return void

Default() public static method

Returns the override value if non-null and the default value otherwise.
public static Default ( string Override, string Default ) : string
Override string The override value.
Default string The default value
return string

DefaultError() public static method

Report error text.
public static DefaultError ( string Text ) : void
Text string Text describing the error.
return void

Error() public static method

Report error text.
public static Error ( string Text ) : void
Text string Format string describing the error.
return void

NYI() public static method

Not Yet Implemented Error
public static NYI ( ) : void
return void

NYI() public static method

Not Yet Implemented Error
public static NYI ( string Item ) : void
Item string Describe what is not yet implemented
return void

Property Details

OverrideError public_oe static_oe property

Override the default error handler with a custom error handler.
public static ErrorReport OverrideError
return ErrorReport