Exception: Sandbox::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sandbox/errors.rb

Direct Known Subclasses

LoadedSandboxError, ParseError

Instance Method Summary collapse

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

#messageObject



8
9
10
11
12
# File 'lib/sandbox/errors.rb', line 8

def message
  out = [super]
  out.concat(backtrace.collect { |bt| "    #{bt}" }) if Sandbox.really_verbose?
  out.join("\n")
end