Exception: Impermium::BaseError
- Inherits:
-
StandardError
- Object
- StandardError
- Impermium::BaseError
- Defined in:
- lib/impermium/errors.rb
Direct Known Subclasses
BadRequest, ForbiddenRequest, NotFoundRequest, UnauthorizedReqeust
Instance Attribute Summary collapse
-
#request_type ⇒ Object
readonly
Returns the value of attribute request_type.
-
#request_url ⇒ Object
readonly
Returns the value of attribute request_url.
Instance Method Summary collapse
-
#initialize(request_type, request_url, message) ⇒ BaseError
constructor
A new instance of BaseError.
Constructor Details
#initialize(request_type, request_url, message) ⇒ BaseError
Returns a new instance of BaseError.
6 7 8 9 10 |
# File 'lib/impermium/errors.rb', line 6 def initialize(request_type, request_url, ) @request_type = request_type @request_url = request_url super end |
Instance Attribute Details
#request_type ⇒ Object (readonly)
Returns the value of attribute request_type.
3 4 5 |
# File 'lib/impermium/errors.rb', line 3 def request_type @request_type end |
#request_url ⇒ Object (readonly)
Returns the value of attribute request_url.
4 5 6 |
# File 'lib/impermium/errors.rb', line 4 def request_url @request_url end |