Class ActivityMonitorErrorCounter.State
Encapsulates error information. The ToString() method displays the conclusion in a default text format.
Inherited Members
Namespace: CK.Core
Assembly: CK.ActivityMonitor.dll
Syntax
public class State
Properties
| Improve this Doc View SourceErrorCount
Gets the current number of errors.
Declaration
public int ErrorCount { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
FatalCount
Gets the current number of fatal errors.
Declaration
public int FatalCount { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
HasError
Gets whether an error or a fatal occurred.
Declaration
public bool HasError { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
HasWarnOrError
Gets whether a fatal, an error or a warn occurred.
Declaration
public bool HasWarnOrError { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
MaxLogLevel
Gets the current maximum LogLevel.
Declaration
public LogLevel MaxLogLevel { get; }
Property Value
| Type | Description |
|---|---|
| LogLevel |
WarnCount
Gets the current number of warnings.
Declaration
public int WarnCount { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Methods
| Improve this Doc View SourceClearError()
Resets FatalCount and ErrorCount.
Declaration
public void ClearError()
ClearWarn(Boolean)
Resets current WarnCount, and optionnaly FatalCount and ErrorCount.
Declaration
public void ClearWarn(bool clearError = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Boolean | clearError |
ToString()
Gets the current message if HasWarnOrError is true, otherwise null.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| String | Formatted message or null if no error nor warning occurred. |