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, #set_backtrace, #to_s

Constructor Details

#initialize(args) ⇒ UncaughtThrowError

Returns a new instance of UncaughtThrowError.



162
163
164
165
166
167
# File 'opal/opal/corelib/error.rb', line 162

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.



160
161
162
# File 'opal/opal/corelib/error.rb', line 160

def arg
  @arg
end

#symObject (readonly)

Returns the value of attribute sym.



160
161
162
# File 'opal/opal/corelib/error.rb', line 160

def sym
  @sym
end