C# Class Goedel.Debug.Utils

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

Méthodes publiques

Свойство Type Description
OverrideError ErrorReport

Méthodes publiques

Méthode 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 méthode

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.
Résultat void

Assert() public static méthode

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.
Résultat void

Default() public static méthode

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
Résultat string

DefaultError() public static méthode

Report error text.
public static DefaultError ( string Text ) : void
Text string Text describing the error.
Résultat void

Error() public static méthode

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

NYI() public static méthode

Not Yet Implemented Error
public static NYI ( ) : void
Résultat void

NYI() public static méthode

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

Property Details

OverrideError public_oe static_oe property

Override the default error handler with a custom error handler.
public static ErrorReport OverrideError
Résultat ErrorReport