Union
EncodingError
union struct EncodingError
Module: System.Text
Assembly: System.Runtime.dll
Source file: EncodingError.rvn
Inheritance: Object → ValueType → EncodingError
A typed conversion, encoder or decoder lifecycle failure.
Remarks
Development standard Raven union. Match named cases. An inactive default has HasValue false and Value null.
Cases
6 cases
case LimitExceeded
The operation exceeds its conversion bound; decoder preflight is retryable.
case Finished
The decoder was finalized or previously rejected malformed input, or the encoder has already accepted final input or completed.
case InvalidUtf8
The UTF-8 input is malformed or ends in an incomplete sequence.
case InvalidData
The selected encoding rejects the input bytes.
case UnrepresentableText
The text cannot be represented by the selected encoding.
case Busy
The previous nonfinal accepted input still has output to drain.
Properties
2 items
HasValue: bool
Whether a case is active.
Value: object?
The active case value, or null for the inactive default.
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 the active case name, or Empty.
Overrides Object.ToString