Union
JsonError
union struct JsonError
Module: System.Data.Json
Assembly: System.Data.dll
Source file: JsonError.rvn
Inheritance: Object → ValueType → JsonError
Expected JSON syntax, resource, lookup, conversion or I/O failure. Match cases to inspect causes; diagnostic strings are not stable identifiers.
Cases
13 cases
case InvalidOptions(message: string)
Invalid document parsing options, reported before consuming input.
case Syntax(message: string)
Malformed JSON or invalid Unicode escape.
case LimitExceeded(message: string)
A bounded document or container limit was exceeded.
case TypeMismatch(expected: string)
A consumer expected a different JSON kind.
case MissingField(name: string)
The named object member is absent.
case DuplicateField(name: string)
A decoded object member name was repeated.
case InvalidIndex(index: int)
An entry index is outside the container.
case InvalidNumber
The supplied token is not a supported JSON number token.
case NumberOutOfRange
The number token cannot be converted to Int32 without coercion.
case Read(reason: TextReadError)
The text input layer failed; retains its cause.
case Write(reason: StreamError)
The output stream failed; retains its cause.
case Reflection(reason: ReflectionError)
A checked runtime reflection operation rejected construction or property access.
case UnsupportedMapping(message: string)
The model or property requires mapping behavior outside this provisional contract.
Properties
2 items
HasValue: bool
Indicates whether the union contains a case. A default uninitialized union has no case.
Value: object?
Gets the boxed case payload. Prefer matching the union to inspect typed causes.
Methods
4 items
Equals(other: object?) -> bool
Tests reference identity by default; an ordinary class may override equality.
Inherited from Object.Equals
GetHashCode() -> int
Returns a stable identity hash by default; an ordinary class may override it consistently with equality.
Inherited from Object.GetHashCode
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
ToString() -> string
Returns diagnostic text; inspect union cases for stable program logic.
Overrides Object.ToString