Class BoundError
An expression the static semantics refuse - a compile error (RD-VBAL §2.6.2) - and its run-time counterpart.
public sealed record BoundError : BoundNode, IEquatable<BoundNode>, IEquatable<BoundError>
- Inheritance
-
BoundError
- Implements
- Inherited Members
Remarks
A module with a compile error does not load, and its code does not run: what evaluates such an expression evaluates it outside of one - a statement of an interactive session, a test that evaluates code without loading it. It is evaluated as it would be late-bound (Late), which raises what MS-VBA raises for the same expression when its object is only known at run time: error 438 for a member the object does not have, 449 for an argument that is not optional, 450 for one too many, 13 for a value of the wrong type.
Constructors
BoundError(ExpressionNode, VBCompileErrorInfo, BoundNode)
An expression the static semantics refuse - a compile error (RD-VBAL §2.6.2) - and its run-time counterpart.
public BoundError(ExpressionNode Expression, VBCompileErrorInfo Error, BoundNode Late)
Parameters
ExpressionExpressionNodeThe expression.
ErrorVBCompileErrorInfoThe compile error.
LateBoundNodeThe expression, bound as if the static semantics had nothing to say of it: its run-time counterpart.
Remarks
A module with a compile error does not load, and its code does not run: what evaluates such an expression evaluates it outside of one - a statement of an interactive session, a test that evaluates code without loading it. It is evaluated as it would be late-bound (Late), which raises what MS-VBA raises for the same expression when its object is only known at run time: error 438 for a member the object does not have, 449 for an argument that is not optional, 450 for one too many, 13 for a value of the wrong type.
Properties
Error
The compile error.
public VBCompileErrorInfo Error { get; init; }
Property Value
Late
The expression, bound as if the static semantics had nothing to say of it: its run-time counterpart.
public BoundNode Late { get; init; }