Exception: LocalJumpError

Inherits:
StandardError show all
Defined in:
opal/opal/corelib/error.rb,
opal/opal/corelib/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Exception

#backtrace, #backtrace_locations, #cause, #copy_instance_variables, exception, #exception, #full_message, #inspect, #message, new, #set_backtrace, #to_s

Constructor Details

#initialize(message, exit_value = nil, reason = :noreason) ⇒ LocalJumpError

Returns a new instance of LocalJumpError.



322
323
324
325
326
# File 'opal/opal/corelib/error.rb', line 322

def initialize(message, exit_value = nil, reason = :noreason)
  super message
  @exit_value = exit_value
  @reason = reason
end

Instance Attribute Details

#exit_valueObject (readonly)

Returns the value of attribute exit_value.



320
321
322
# File 'opal/opal/corelib/error.rb', line 320

def exit_value
  @exit_value
end

#reasonObject (readonly)

Returns the value of attribute reason.



320
321
322
# File 'opal/opal/corelib/error.rb', line 320

def reason
  @reason
end