Diagnostics Class |
Namespace: DHI.Mike1D.Generic
The Diagnostics type exposes the following members.
Name | Description | |
---|---|---|
Diagnostics |
Create a new unnamed Diagnostics. Use only if this diagnostics
at a later stage is appended to a named diagnostics.
| |
Diagnostics(String) |
Create a new named Diagnostics
| |
Diagnostics(IDiagnosticItem) |
Create a new named Diagnostics
| |
Diagnostics(String, Object) |
Create a new named Diagnostics
|
Name | Description | |
---|---|---|
Children |
Children of sub-diagnostics, implementing a tree-like structure of Diagnostics.
If you add children to the list, remember to se teh parent - or use AddChild().
| |
ErrorCountRecursive |
The number of issues in this diagnostics, including issues in the stack.
| |
Errors |
Get a list of all errors (not from the stack)
| |
ErrorsRecursive |
Get a list of all errors, recursively
| |
HintCountRecursive |
The number of warnings in this diagnostics, including warnings in the stack.
| |
Hints |
Get a list of all hints (not from the stack)
| |
HintsRecursive |
Get a list of all warnings, recursively
| |
Infos |
Get a list of all hints (not from the stack)
| |
IssueCount |
The number of issues in this diagnostics
| |
IssueCountRecursive |
The number of issues in this diagnostics, including issues in the stack.
| |
Name |
Name or origin of Diagnostics. Can be null/empty string.
| |
Parent |
Parent diagnostic. Diagnostics can belong to a tree with one parent and
several children. If parent is null, then this diagnostic is the root.
| |
Source |
Source object that created the Diagnostics
| |
SourceDescription |
Description of Diagnostics source. Can be null/empty string.
| |
WarningCountRecursive |
The number of warnings in this diagnostics, including warnings in the stack.
| |
Warnings |
Get a list of all warnings (not from the stack)
| |
WarningsRecursive |
Get a list of all warnings, recursively
|
Name | Description | |
---|---|---|
AddChild |
Add a child diagnostics to the diagnostics tree. Sets the parent of the child.
| |
Append |
Append errors, warnings and hints from input diagnostics to
this diagnostics, and add stack items
| |
Clear |
Clear diagnostics, as well errors as warnings as hints as stack.
| |
ClearIssuesRecursive |
Remove all issues from this Diagnostics and all child Diagnostics
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Error |
Add an error DiagnosticItem
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Hint |
Add a hint DiagnosticItem
| |
Info(String) |
Add an information DiagnosticItem
| |
Info(IDiagnosticItem) |
Add an information DiagnosticItem
| |
IsParent |
Return true if diagnostics is the parent of this diagnostics.
It checks the parent recursively to the root.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RuntimeError(IDiagnosticItem) |
Create an error DiagnosticItem and throw an exception
| |
RuntimeError(IDiagnosticItem, Exception) |
Create an error DiagnosticItem and throw an exception
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Warning |
Add a warning DiagnosticItem
|
Name | Description | |
---|---|---|
DiagnosticsEvent |
The event which is called when a diagnostics event is encountered. If this is null, then the
event of the root diagnostic (the parent's parent until parent is null) is called.
|
Name | Description | |
---|---|---|
GetAdditionalInformation |
Delegate to access additional information to add to items. Used to append time step information
to items from HD.
| |
MessageIdToWarning |
ID of messages that, if reported as errors, are reported as warnings
|
Name | Description | |
---|---|---|
Error |
Add an error to the diagnostics item.
(Defined by GenericExtensions.) | |
ExceptionToError |
Add an error DiagnosticItem, and throw an exception
(Defined by GenericExtensions.) | |
RuntimeError |
Add an error DiagnosticItem, and throw an exception
(Defined by GenericExtensions.) | |
Warning |
Add a warning message
(Defined by GenericExtensions.) |