Exception: FrozenError
- Inherits:
-
RuntimeError
- Object
- Exception
- StandardError
- RuntimeError
- FrozenError
- Defined in:
- opal/opal/corelib/error.rb,
opal/opal/corelib/error.rb
Instance Attribute Summary collapse
-
#receiver ⇒ Object
readonly
Returns the value of attribute receiver.
Instance Method Summary collapse
-
#initialize(message, receiver: nil) ⇒ FrozenError
constructor
A new instance of FrozenError.
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
#receiver ⇒ Object (readonly)
Returns the value of attribute receiver.
250 251 252
# File 'opal/opal/corelib/error.rb', line 250 def receiver @receiver end