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



117
118
119
120
121
122
# File 'opal/opal/corelib/error.rb', line 117

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



115
116
117
# File 'opal/opal/corelib/error.rb', line 115

def arg
  @arg
end

#symObject (readonly)

Returns the value of attribute sym



115
116
117
# File 'opal/opal/corelib/error.rb', line 115

def sym
  @sym
end