Exception: UncaughtThrowError

Inherits:
ArgumentError show all
Defined in:
mruby/mrbgems/mruby-catch/mrblib/catch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#tagObject (readonly)

Returns the value of attribute tag.



2
3
4
# File 'mruby/mrbgems/mruby-catch/mrblib/catch.rb', line 2

def tag
  @tag
end

#valueObject (readonly)

Returns the value of attribute value.



2
3
4
# File 'mruby/mrbgems/mruby-catch/mrblib/catch.rb', line 2

def value
  @value
end