Class: ScriptCore::EngineAbnormalExitError

Inherits:
EngineInternalError
  • Object
show all
Defined in:
lib/script_core/engine_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code:) ⇒ EngineAbnormalExitError

Returns a new instance of EngineAbnormalExitError.



91
92
93
94
# File 'lib/script_core/engine_error.rb', line 91

def initialize(code:)
  @code = code
  super("engine exited with code #{code}")
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



89
90
91
# File 'lib/script_core/engine_error.rb', line 89

def code
  @code
end