Exception: Wasmtime::WasiExit
- Defined in:
- lib/wasmtime/error.rb
Overview
Raised when a WASI program terminates early by calling exit
.
Instance Attribute Summary collapse
-
#code ⇒ Integer
readonly
The system exit code.
Instance Method Summary collapse
-
#initialize(code) ⇒ WasiExit
constructor
A new instance of WasiExit.
- #message ⇒ String
Constructor Details
#initialize(code) ⇒ WasiExit
Returns a new instance of WasiExit.
39 40 41 |
# File 'lib/wasmtime/error.rb', line 39 def initialize(code) @code = code end |
Instance Attribute Details
#code ⇒ Integer (readonly)
Returns The system exit code.
37 38 39 |
# File 'lib/wasmtime/error.rb', line 37 def code @code end |
Instance Method Details
#message ⇒ String
44 45 46 |
# File 'lib/wasmtime/error.rb', line 44 def "WASI exit with code #{code}" end |