WasiException Class

An error of a WASI operation: the function returns WasiException.Errno to the module. A WasiFileSystem throws it to report an error with a precise code.

public sealed class WasiException : Exception
Inheritance
Exception WasiException

Constructors

NameDescription
WasiException()Initializes a new instance of the WasiException class, whose code is WasiErrno.IOError.
WasiException(WasiErrno)Initializes a new instance of the WasiException class.
WasiException(WasiErrno, string)Initializes a new instance of the WasiException class.
WasiException(string)Initializes a new instance of the WasiException class, whose code is WasiErrno.IOError.
WasiException(string, Exception?)Initializes a new instance of the WasiException class, whose code is WasiErrno.IOError.

WasiException overloads

WasiException()

WasiExceptions.cs

Initializes a new instance of the WasiException class, whose code is WasiErrno.IOError.

public WasiException()

WasiException(WasiErrno)

WasiExceptions.cs

Initializes a new instance of the WasiException class.

public WasiException(WasiErrno errno)
Parameters
errno WasiErrno
The code returned to the module.

WasiException(WasiErrno, string)

WasiExceptions.cs

Initializes a new instance of the WasiException class.

public WasiException(WasiErrno errno, string message)
Parameters
errno WasiErrno
The code returned to the module.
message string
The message of the exception.

WasiException(string)

WasiExceptions.cs

Initializes a new instance of the WasiException class, whose code is WasiErrno.IOError.

public WasiException(string message)
Parameters
message string
The message of the exception.

WasiException(string, Exception?)

WasiExceptions.cs

Initializes a new instance of the WasiException class, whose code is WasiErrno.IOError.

public WasiException(string message, Exception? innerException)
Parameters
message string
The message of the exception.
innerException Exception?
The exception that caused the error.

Properties

NameDescription
ErrnoGets the code returned to the module.

Gets the code returned to the module.

public WasiErrno Errno { get; }

Property value

WasiErrno