class Cerberus::Exception::HttpError

Custom exception raised when an HTTP exception is raised but we want to handle it differently than simply presenting it to the end-user

Attributes

response[R]

Public Class Methods

new(httpMsg, responseObj = nil) click to toggle source

Init with exception message and response object if one is available

Calls superclass method
# File lib/cerberus/exception/http_error.rb, line 16
def initialize(httpMsg, responseObj = nil)

  @response = responseObj
  super("An error occurred executing the HTTP request: #{httpMsg}")

end