Method: ContentGateway::BaseError#initialize
- Defined in:
- lib/content_gateway/exceptions.rb
#initialize(resource_url, wrapped_exception = nil, status_code = nil, info = nil) ⇒ BaseError
Returns a new instance of BaseError.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/content_gateway/exceptions.rb', line 5 def initialize(resource_url, wrapped_exception = nil, status_code = nil, info = nil) @resource_url = resource_url @wrapped_exception = wrapped_exception @status_code = status_code @info = info = @resource_url.dup if @wrapped_exception << " - #{@wrapped_exception.}" << " - #{@info}" if @info end super() end |