class Artifactory::Error::HTTPError
Class for all HTTP errors
Attributes
code[R]
Public Class Methods
new(hash = {})
click to toggle source
Calls superclass method
# File lib/artifactory/errors.rb, line 26 def initialize(hash = {}) @code = hash["status"].to_i @http = hash["message"].to_s super "The Artifactory server responded with an HTTP Error " \ "#{@code}: `#{@http}'" end