Exception: ErrorResponse::RequestError
- Inherits:
-
StandardError
- Object
- StandardError
- ErrorResponse::RequestError
- Defined in:
- lib/error_response/request_error.rb
Instance Attribute Summary collapse
-
#error_data ⇒ Object
readonly
Returns the value of attribute error_data.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key, error_message: nil, error_data: {}) ⇒ RequestError
constructor
A new instance of RequestError.
Constructor Details
#initialize(key, error_message: nil, error_data: {}) ⇒ RequestError
Returns a new instance of RequestError.
7 8 9 10 11 |
# File 'lib/error_response/request_error.rb', line 7 def initialize(key, error_message: nil, error_data: {}) @key = key @error_message = @error_data = error_data end |
Instance Attribute Details
#error_data ⇒ Object (readonly)
Returns the value of attribute error_data.
5 6 7 |
# File 'lib/error_response/request_error.rb', line 5 def error_data @error_data end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
5 6 7 |
# File 'lib/error_response/request_error.rb', line 5 def @error_message end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
5 6 7 |
# File 'lib/error_response/request_error.rb', line 5 def key @key end |