Exception: UncaughtThrowError
- Inherits:
-
ArgumentError
- Object
- Exception
- StandardError
- ArgumentError
- UncaughtThrowError
- Defined in:
- opal/opal/corelib/error.rb,
opal/opal/corelib/error.rb
Instance Attribute Summary collapse
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(tag, value = nil) ⇒ UncaughtThrowError
constructor
A new instance of UncaughtThrowError.
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(tag, value = nil) ⇒ UncaughtThrowError
Returns a new instance of UncaughtThrowError.
273 274 275 276 277 278 |
# File 'opal/opal/corelib/error.rb', line 273 def initialize(tag, value = nil) @tag = tag @value = value super("uncaught throw #{@tag.inspect}") end |
Instance Attribute Details
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
271 272 273 |
# File 'opal/opal/corelib/error.rb', line 271 def tag @tag end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
271 272 273 |
# File 'opal/opal/corelib/error.rb', line 271 def value @value end |