Represents a list of defects that were detected by the encoder or decoder in a NAS message.
More...
Inherits System.Collections.Generic.List< Diagnostics.Entry >.
|
class | Entry |
| Represents an entry in a diagnostic report. More...
|
|
|
| Diagnostics () |
| Constructs an empty diagnostic report.
|
|
| Diagnostics (Owner source) |
| Constructs an empty diagnostic report. More...
|
|
| Diagnostics (Diagnostics source) |
| The copy constructor. More...
|
|
Entry | AddEntry (Severity severity, Reason reason, Object details, String location) |
| Adds a new entry to a diagnostic report. More...
|
|
void | Reset (Owner source) |
| Removes all entries from a diagnostic report and resets the identification of the NAS/C# runtime component to a specified value. This method is provided to facilitate the reuse of the existing Diagnostics object. More...
|
|
override string | ToString () |
| Presents a diagnostic report in human-readable format. More...
|
|
void | Print (TextWriter s) |
| Prints a diagnostic report to TextWriter . More...
|
|
|
Owner | Source [get, set] |
| Identifies the NAS/C# runtime component that created a diagnostic report.
|
|
Severity | SeverityLevel [get] |
| Determines the highest severity level of the entries contained in a diagnostic report.
|
|
Represents a list of defects that were detected by the encoder or decoder in a NAS message.
◆ Severity
Enumerates the defect severity levels in a diagnostic report.
Enumerator |
---|
Informational | Identifies informational diagnostics. This Severity value is not currently used and is reserved for future use.
|
Warning | Identifies a non-critical defect that does not invalidate a NAS message.
|
IgnorableError | Serious error in a non-imperative part of a message that does not invalidate a NAS message but causes the decoder to discard the corresponding optional IE.
|
RecoverableError | Serious error that invalidates a NAS message but permits further processing so additional diagnostic information can be collected.
|
CriticalError | Critical defect that causes the encoder or decoder to abort further message processing.
|
◆ Diagnostics() [1/2]
Oss.Nas.Diagnostics.Diagnostics |
( |
Owner |
source | ) |
|
|
inline |
Constructs an empty diagnostic report.
- Parameters
-
source | Identifies the NAS/C# runtime component that requested the diagnostic report. |
◆ Diagnostics() [2/2]
The copy constructor.
- Parameters
-
source | The source for the copy. |
◆ AddEntry()
Entry Oss.Nas.Diagnostics.AddEntry |
( |
Severity |
severity, |
|
|
Reason |
reason, |
|
|
Object |
details, |
|
|
String |
location |
|
) |
| |
|
inline |
Adds a new entry to a diagnostic report.
- Parameters
-
severity | The severity of the defect. |
reason | Specifies the reason why the entry was created. |
details | Provides more details about the defect (optional, can be null). |
location | Identifies the NAS message component in which the defect was detected. |
- Returns
- The
Diagnostics.Entry
object that was added.
◆ Print()
void Oss.Nas.Diagnostics.Print |
( |
TextWriter |
s | ) |
|
|
inline |
Prints a diagnostic report to TextWriter
.
- Parameters
-
◆ Reset()
void Oss.Nas.Diagnostics.Reset |
( |
Owner |
source | ) |
|
|
inline |
Removes all entries from a diagnostic report and resets the identification of the NAS/C# runtime component to a specified value. This method is provided to facilitate the reuse of the existing Diagnostics
object.
- Parameters
-
source | Identifies the NAS/C# runtime component that requested the reset of the diagnostic report. |
◆ ToString()
override string Oss.Nas.Diagnostics.ToString |
( |
| ) |
|
|
inline |
Presents a diagnostic report in human-readable format.
- Returns
- A string representation of the diagnostic report, suitable for logging.