Struct SerializationError
- Namespace
- Gsk
- Assembly
- Gsk-4.0.dll
Contains all error codes of the SerializationError error-domain.
public readonly ref struct SerializationError
- Inherited Members
Constructors
SerializationError(int)
Creates a new error in the SerializationError domain with a given error code.
public SerializationError(int errorCode)
Parameters
errorCodeintA specific error code of the domain
Properties
Any
Can be used to match a GException with any error code of the "SerializationError" error-domain.
public static Quark Any { get; }
Property Value
InvalidData
Can be used to match a GException with the "InvalidData" code (2).
public static SerializationError InvalidData { get; }
Property Value
UnsupportedFormat
Can be used to match a GException with the "UnsupportedFormat" code (0).
public static SerializationError UnsupportedFormat { get; }
Property Value
UnsupportedVersion
Can be used to match a GException with the "UnsupportedVersion" code (1).
public static SerializationError UnsupportedVersion { get; }
Property Value
Operators
implicit operator ErrorCode(SerializationError)
Converts a SerializationError into a ErrorCode which can be used to match a GException.
public static implicit operator ErrorCode(SerializationError e)