Exception: Radar::API::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Radar::API::Error
- Defined in:
- lib/radar/api/errors/error.rb
Direct Known Subclasses
BadRequestError, ConflictError, ForbiddenError, NotFoundError, TooManyRequestsError, UnauthorizedError, UnavailableError, UnprocessableEntityError, UsageError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#param ⇒ Object
readonly
Returns the value of attribute param.
Instance Method Summary collapse
-
#initialize(**error_params) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(**error_params) ⇒ Error
Returns a new instance of Error.
6 7 8 9 10 |
# File 'lib/radar/api/errors/error.rb', line 6 def initialize(**error_params) @code = error_params.dig(:code) @param = error_params.dig(:param) @message = error_params.dig(:message) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/radar/api/errors/error.rb', line 4 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
4 5 6 |
# File 'lib/radar/api/errors/error.rb', line 4 def @message end |
#param ⇒ Object (readonly)
Returns the value of attribute param.
4 5 6 |
# File 'lib/radar/api/errors/error.rb', line 4 def param @param end |