Exception: Percy::Client::HttpError

Inherits:
Error
  • Object
show all
Defined in:
lib/percy/client.rb

Direct Known Subclasses

ClientError, ServerError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, method, url, body, *args) ⇒ HttpError

Returns a new instance of HttpError.



26
27
28
29
30
31
32
# File 'lib/percy/client.rb', line 26

def initialize(status, method, url, body, *args)
  @status = status
  @method = method
  @url = url
  @body = body
  super(*args)
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



24
25
26
# File 'lib/percy/client.rb', line 24

def body
  @body
end

#methodObject (readonly)

Returns the value of attribute method.



22
23
24
# File 'lib/percy/client.rb', line 22

def method
  @method
end

#statusObject (readonly)

Returns the value of attribute status.



21
22
23
# File 'lib/percy/client.rb', line 21

def status
  @status
end

#urlObject (readonly)

Returns the value of attribute url.



23
24
25
# File 'lib/percy/client.rb', line 23

def url
  @url
end