Exception: UncaughtThrowError
- Inherits:
-
ArgumentError
- Object
- Exception
- StandardError
- ArgumentError
- UncaughtThrowError
- Defined in:
- opal/opal/corelib/error.rb
Instance Attribute Summary collapse
-
#arg ⇒ Object
readonly
Returns the value of attribute arg.
-
#sym ⇒ Object
readonly
Returns the value of attribute sym.
Instance Method Summary collapse
-
#initialize(args) ⇒ UncaughtThrowError
constructor
A new instance of UncaughtThrowError.
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 |