Exception: OpenRecycling::ClientError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/open_recycling/client_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code:, message:, uri:, body: nil) ⇒ ClientError

Returns a new instance of ClientError.



7
8
9
10
11
12
# File 'lib/open_recycling/client_error.rb', line 7

def initialize(code:, message:, uri:, body: nil)
  super(message)
  @code = code
  @uri = uri
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



5
6
7
# File 'lib/open_recycling/client_error.rb', line 5

def body
  @body
end

#codeObject (readonly)

Returns the value of attribute code.



5
6
7
# File 'lib/open_recycling/client_error.rb', line 5

def code
  @code
end

#uriObject (readonly)

Returns the value of attribute uri.



5
6
7
# File 'lib/open_recycling/client_error.rb', line 5

def uri
  @uri
end