class Layer::Exceptions::Exception
Attributes
original_exception[R]
Public Class Methods
new(original_exception = nil)
click to toggle source
# File lib/layer/exceptions.rb, line 17 def initialize(original_exception = nil) @original_exception = original_exception end
Public Instance Methods
message()
click to toggle source
# File lib/layer/exceptions.rb, line 21 def message "#{original_exception.message}\n\n#{JSON.pretty_generate(response_json)}\n\n" end
response_json()
click to toggle source
# File lib/layer/exceptions.rb, line 25 def response_json JSON.parse(original_exception.http_body) end