C# Class CK.Core.ActivityMonitorErrorCounter.State

Encapsulates error information. The ToString method displays the conclusion in a default text format.
Show file Open project: Invenietis/ck-core

Public Methods

Method Description
ClearError ( ) : void

Resets FatalCount and ErrorCount.

ClearWarn ( bool clearError = false ) : void

Resets current WarnCount, and optionnaly FatalCount and ErrorCount.

ToString ( ) : string

Gets the current message if HasWarnOrError is true, otherwise null.

Private Methods

Method Description
CatchLevel ( LogLevel level ) : void
State ( State parent ) : System

Method Details

ClearError() public method

Resets FatalCount and ErrorCount.
public ClearError ( ) : void
return void

ClearWarn() public method

Resets current WarnCount, and optionnaly FatalCount and ErrorCount.
public ClearWarn ( bool clearError = false ) : void
clearError bool
return void

ToString() public method

Gets the current message if HasWarnOrError is true, otherwise null.
public ToString ( ) : string
return string