Table of Contents

Class SofabException

Namespace
sofab
Assembly
SofaBuffers.dll

Thrown by the encoder and decoder on protocol or buffer errors.

public sealed class SofabException : IOException, ISerializable
Inheritance
SofabException
Implements
Inherited Members

Remarks

It extends IOException so it composes naturally with .NET I/O: a flush sink that writes to a socket or file may itself throw IOException, and generated marshal/unmarshal code can simply propagate it. The specific SofabError is available via Error.

Constructors

SofabException(SofabError)

Create an exception for the given error category.

public SofabException(SofabError error)

Parameters

error SofabError

the error category

SofabException(SofabError, string)

Create an exception for the given error category with extra detail.

public SofabException(SofabError error, string detail)

Parameters

error SofabError

the error category

detail string

human-readable context appended to the message

Properties

Error

The error category that caused this exception.

public SofabError Error { get; }

Property Value

SofabError