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
ExceptionWasiException
Constructors
| Name | Description |
|---|---|
| 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.csInitializes a new instance of the WasiException class, whose code is WasiErrno.IOError.
public WasiException()WasiException(WasiErrno)
WasiExceptions.csInitializes a new instance of the WasiException class.
public WasiException(WasiErrno errno)Parameters
errnoWasiErrno- The code returned to the module.
WasiException(WasiErrno, string)
WasiExceptions.csInitializes a new instance of the WasiException class.
WasiException(string)
WasiExceptions.csInitializes a new instance of the WasiException class, whose code is WasiErrno.IOError.
public WasiException(string message)Parameters
messagestring- The message of the exception.
WasiException(string, Exception?)
WasiExceptions.csInitializes a new instance of the WasiException class, whose code is WasiErrno.IOError.
Parameters
messagestring- The message of the exception.
innerExceptionException?- The exception that caused the error.
Properties
| Name | Description |
|---|---|
| Errno | Gets the code returned to the module. |