Exception: UncaughtThrowError

Inherits:
ArgumentError show all
Defined in:
opal/opal/corelib/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Exception

#backtrace, exception, #exception, #inspect, #message, new, #to_s

Constructor Details

#initialize(args) ⇒ UncaughtThrowError

Returns a new instance of UncaughtThrowError



108
109
110
111
112
113
# File 'opal/opal/corelib/error.rb', line 108

def initialize(args)
  @sym = args[0]
  @arg = args[1] if args.length > 1

  super("uncaught throw #{@sym.inspect}")
end

Instance Attribute Details

#argObject (readonly)

Returns the value of attribute arg



106
107
108
# File 'opal/opal/corelib/error.rb', line 106

def arg
  @arg
end

#symObject (readonly)

Returns the value of attribute sym



106
107
108
# File 'opal/opal/corelib/error.rb', line 106

def sym
  @sym
end