Method: WorkSnaps::Error#initialize
- Defined in:
- lib/worksnaps/error.rb
#initialize(exception = $!, response_headers = {}) ⇒ Error
Returns a new instance of Error.
13 14 15 16 |
# File 'lib/worksnaps/error.rb', line 13 def initialize(exception=$!, response_headers={}) @wrapped_exception = exception exception.respond_to?(:backtrace) ? super(exception.) : super(exception.to_s) end |