ErrorRecordWrapper class
Wraps an ErrorRecord object to provide additional logging information.
public class ErrorRecordWrapper
| parameter | description |
|---|---|
| errorRecord | The error record to wrap. |
Public Members
| name | description |
|---|---|
| ErrorRecordWrapper(…) | Wraps an ErrorRecord object to provide additional logging information. |
| CategoryInfo { get; } | Gets the error category information associated with the error record. |
| ErrorDetails { get; set; } | Gets or sets the error details associated with the error record. |
| ExceptionDetails { get; } | Gets the exception details associated with the error record, if available. |
| ExceptionMessage { get; } | Gets the exception message associated with the error record, if available. |
| FullyQualifiedErrorId { get; } | Gets the fully qualified error ID associated with the error record. |
| InvocationInfoWrapper { get; } | Gets the invocation information wrapper associated with the error record. |
| PipelineIterationInfo { get; } | Gets the pipeline iteration information associated with the error record. |
| ScriptStackTrace { get; } | Gets the script stack trace associated with the error record. |
| TargetObject { get; } | Gets the target object associated with the error record. |
| override ToString() | Returns a string representation of the current ErrorRecordWrapper instance. |
Remarks
Initializes a new instance of the ErrorRecordWrapper class using the specified ErrorRecord.
See Also
- namespace Kestrun.Logging.Data