Class ProgramErrorArgument
An argument of the OnError hook that passes a part of the error the procedure left unhandled: its number
(Err.Number) as a JSON number, or its description (Err.Description) as a JSON string. The value converts to the parameter's declared type
as the value of a ProgramValueArgument does.
public sealed record ProgramErrorArgument : ProgramArgument, IEquatable<ProgramArgument>, IEquatable<ProgramErrorArgument>
- Inheritance
-
ProgramErrorArgument
- Implements
- Inherited Members
Constructors
ProgramErrorArgument(string, ProgramErrorPart)
An argument of the OnError hook that passes a part of the error the procedure left unhandled: its number
(Err.Number) as a JSON number, or its description (Err.Description) as a JSON string. The value converts to the parameter's declared type
as the value of a ProgramValueArgument does.
public ProgramErrorArgument(string Parameter, ProgramErrorPart Part)
Parameters
ParameterstringThe name of the parameter the argument is passed to.
PartProgramErrorPartThe part of the error it passes.
Properties
Part
The part of the error it passes.
public ProgramErrorPart Part { get; init; }