Exception: DomoscioAdmin::ProcessingError

Inherits:
Error
  • Object
show all
Defined in:
lib/domoscio_admin/errors.rb

Overview

ProcessingError from DomoscioAdmin

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request_url, code, details = {}, body = nil, request_params = {}) ⇒ ProcessingError

Returns a new instance of ProcessingError.



24
25
26
27
# File 'lib/domoscio_admin/errors.rb', line 24

def initialize(request_url, code, details = {}, body = nil, request_params = {})
  @request_url, @code, @details, @body, @request_params = request_url, code, details, body, request_params
  super(message) if message
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



22
23
24
# File 'lib/domoscio_admin/errors.rb', line 22

def body
  @body
end

#codeObject (readonly)

Returns the value of attribute code.



22
23
24
# File 'lib/domoscio_admin/errors.rb', line 22

def code
  @code
end

#detailsObject (readonly)

Returns the value of attribute details.



22
23
24
# File 'lib/domoscio_admin/errors.rb', line 22

def details
  @details
end

#request_paramsObject (readonly)

Returns the value of attribute request_params.



22
23
24
# File 'lib/domoscio_admin/errors.rb', line 22

def request_params
  @request_params
end

#request_urlObject (readonly)

Returns the value of attribute request_url.



22
23
24
# File 'lib/domoscio_admin/errors.rb', line 22

def request_url
  @request_url
end

Instance Method Details

#messageObject



29
# File 'lib/domoscio_admin/errors.rb', line 29

def message; @details.message; end