Exception: HumanError::Errors::RequestError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- HumanError::Errors::RequestError
- Includes:
- HumanError::Error
- Defined in:
- lib/human_error/errors/request_error.rb
Direct Known Subclasses
AssociationError, DuplicateAuthenticationError, InvalidTokenError, InvalidUsernameOrPasswordError, ResourceNotFoundError, ResourcePersistenceError
Instance Attribute Summary collapse
-
#developer_details ⇒ Object
Returns the value of attribute developer_details.
-
#developer_message ⇒ Object
Returns the value of attribute developer_message.
-
#friendly_message ⇒ Object
Returns the value of attribute friendly_message.
-
#http_status ⇒ Object
Returns the value of attribute http_status.
Attributes included from HumanError::Error
#api_error_documentation_url, #api_version, #code, #knowledgebase_article_id, #knowledgebase_url, #message
Instance Method Summary collapse
Methods included from HumanError::Error
#customer_support_uri, #developer_documentation_uri, included, #initialize, #to_json, #to_s
Instance Attribute Details
#developer_details ⇒ Object
Returns the value of attribute developer_details.
9 10 11 |
# File 'lib/human_error/errors/request_error.rb', line 9 def developer_details @developer_details end |
#developer_message ⇒ Object
Returns the value of attribute developer_message.
9 10 11 |
# File 'lib/human_error/errors/request_error.rb', line 9 def @developer_message end |
#friendly_message ⇒ Object
Returns the value of attribute friendly_message.
9 10 11 |
# File 'lib/human_error/errors/request_error.rb', line 9 def @friendly_message end |
#http_status ⇒ Object
Returns the value of attribute http_status.
9 10 11 |
# File 'lib/human_error/errors/request_error.rb', line 9 def http_status @http_status end |
Instance Method Details
#as_json(_options = {}) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/human_error/errors/request_error.rb', line 14 def as_json( = {}) { error: { status: http_status, code: code, developer_documentation_uri: developer_documentation_uri, customer_support_uri: customer_support_uri, developer_message_key: , developer_message: , developer_details: developer_details, friendly_message_key: , friendly_message: , }, } end |