Exception: UncaughtThrowError
- Inherits:
-
ArgumentError
- Object
- Exception
- StandardError
- ArgumentError
- UncaughtThrowError
- Defined in:
- mruby/mrbgems/mruby-catch/mrblib/catch.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) ⇒ UncaughtThrowError
constructor
A new instance of UncaughtThrowError.
Methods inherited from Exception
#backtrace, #exception, #inspect, #message, #set_backtrace, #to_s
Constructor Details
#initialize(tag, value) ⇒ UncaughtThrowError
Returns a new instance of UncaughtThrowError.
3 4 5 6 7 |
# File 'mruby/mrbgems/mruby-catch/mrblib/catch.rb', line 3 def initialize(tag, value) @tag = tag @value = value super("uncaught throw #{tag.inspect}") end |
Instance Attribute Details
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
2 3 4 |
# File 'mruby/mrbgems/mruby-catch/mrblib/catch.rb', line 2 def tag @tag end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
2 3 4 |
# File 'mruby/mrbgems/mruby-catch/mrblib/catch.rb', line 2 def value @value end |