Class: ScriptCore::EngineAbnormalExitError
- Inherits:
-
EngineInternalError
- Object
- ScriptCore::EngineAbnormalExitError
- Defined in:
- lib/script_core/engine_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code:) ⇒ EngineAbnormalExitError
constructor
A new instance of EngineAbnormalExitError.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
89 90 91 |
# File 'lib/script_core/engine_error.rb', line 89 def code @code end |