Class ExecuteStackFrame
One activation of the call stack a run-time error was raised on.
public record ExecuteStackFrame : IEquatable<ExecuteStackFrame>
- Inheritance
-
ExecuteStackFrame
- Implements
- Inherited Members
Remarks
Structured rather than pre-formatted, because a position only means something to the client: the source both ends agree on is the one the client sent, and a client whose program does not live in a file has its own idea of what a line is called. Formatting it here would force the shell to display a line number its user never typed.
Constructors
ExecuteStackFrame(string, int, int)
One activation of the call stack a run-time error was raised on.
public ExecuteStackFrame(string Procedure, int Line = -1, int Character = -1)
Parameters
ProcedurestringThe name of the procedure the activation is of.
LineintZero-based line in the submitted source, or
-1when the activation carries no location — true of every activation but the one the error was raised in, since an activation record does not say where in itself it is suspended.CharacterintZero-based character within
Line, or-1.
Remarks
Structured rather than pre-formatted, because a position only means something to the client: the source both ends agree on is the one the client sent, and a client whose program does not live in a file has its own idea of what a line is called. Formatting it here would force the shell to display a line number its user never typed.
Properties
Character
Zero-based character within Line, or -1.
public int Character { get; init; }
Property Value
Line
Zero-based line in the submitted source, or -1 when the activation carries no location — true
of every activation but the one the error was raised in, since an activation record does not say
where in itself it is suspended.
public int Line { get; init; }
Property Value
Procedure
The name of the procedure the activation is of.
public string Procedure { get; init; }