Exception: FrozenError

Inherits:
RuntimeError 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, exception, #exception, #full_message, #inspect, #message, new, #set_backtrace, #to_s

Constructor Details

#initialize(message, receiver: nil) ⇒ FrozenError

Returns a new instance of FrozenError.



252
253
254
255
# File 'opal/opal/corelib/error.rb', line 252

def initialize(message, receiver: nil)
  super message
  @receiver = receiver
end

Instance Attribute Details

#receiverObject (readonly)

Returns the value of attribute receiver.



250
251
252
# File 'opal/opal/corelib/error.rb', line 250

def receiver
  @receiver
end