Exception: ServiceClient::Errors::BaseError
- Inherits:
-
StandardError
- Object
- StandardError
- ServiceClient::Errors::BaseError
- Defined in:
- lib/service_client/errors.rb
Overview
BaseError class
Direct Known Subclasses
BadGatewayError, BadRequestError, BlockedByWindowsParentalControlsError, ClientClosedRequestError, ConflictError, EnhanceYourCalmError, ExpectationFailedError, FailedDependencyError, ForbiddenError, GatewayTimeoutError, GoneError, HTTPVersionNotSupportedError, InsufficientStorageError, InternalServerError, LengthRequiredError, LockedError, LoopDetectedError, MethodNotAllowedError, NetworkAuthenticationRequiredError, NetworkConnectTimeoutError, NetworkReadTimeoutError, NoResponseError, NotAcceptableError, NotExtendedError, NotFoundError, NotImplementedError, PaymentRequiredError, PreconditionFailedError, PreconditionRequiredError, ProxyAuthenticationRequiredError, RequestEntityTooLargeError, RequestHeaderFieldsTooLargeError, RequestTimeoutError, RequestURITooLongError, RequestedRangeNotSatisfiableError, RetryWithError, ServiceUnavailableError, TooManyRequestsError, UnauthorizedError, UnavailableForLegalReasonsError, UnprocessableEntityError, UnsupportedMediaTypeError, UpgradeRequiredError, VariantAlsoNegotiatesError
Instance Attribute Summary collapse
-
#response ⇒ HTTParty::Response
readonly
Returns the HTTP response that caused the error.
Instance Method Summary collapse
-
#initialize(msg, response) ⇒ BaseError
constructor
Initializes a new instance of the BaseError class with the given message and HTTP response.
Constructor Details
#initialize(msg, response) ⇒ BaseError
Initializes a new instance of the BaseError class with the given message and HTTP response.
15 16 17 18 |
# File 'lib/service_client/errors.rb', line 15 def initialize(msg, response) @response = response super(msg) end |
Instance Attribute Details
#response ⇒ HTTParty::Response (readonly)
Returns the HTTP response that caused the error.
22 23 24 |
# File 'lib/service_client/errors.rb', line 22 def response @response end |