EInvalidJsonCast Class
Exception raised when an invalid type cast is attempted on a JSON element.
Remarks
This exception is raised by the AsArray, AsObject, AsPrimitive, AsNull, and value access methods (AsBoolean, AsString, etc.) when the element cannot be converted to the requested type.
Syntax
Unit: Bcl.Json.Classes
EInvalidJsonCast = class(Exception);
Constructors
| Name | Description |
|---|---|
| Create | Creates a new EInvalidJsonCast exception with a descriptive error message. |