Exception: Sandbox::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Sandbox::Error
- Defined in:
- lib/sandbox/errors.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
Constructor Details
#initialize(msg = nil) ⇒ Error
Returns a new instance of Error.
4 5 6 |
# File 'lib/sandbox/errors.rb', line 4 def initialize(msg=nil) super(msg) end |
Instance Method Details
#message ⇒ Object
8 9 10 11 12 |
# File 'lib/sandbox/errors.rb', line 8 def out = [super] out.concat(backtrace.collect { |bt| " #{bt}" }) if Sandbox.really_verbose? out.join("\n") end |