Table of Contents

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

errorCode int

A 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

Quark

InvalidData

Can be used to match a GException with the "InvalidData" code (2).

public static SerializationError InvalidData { get; }

Property Value

SerializationError

UnsupportedFormat

Can be used to match a GException with the "UnsupportedFormat" code (0).

public static SerializationError UnsupportedFormat { get; }

Property Value

SerializationError

UnsupportedVersion

Can be used to match a GException with the "UnsupportedVersion" code (1).

public static SerializationError UnsupportedVersion { get; }

Property Value

SerializationError

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)

Parameters

e SerializationError

Returns

ErrorCode