Exception: BigcommerceOAuthAPI::Error
- Inherits:
-
StandardError
- Object
- StandardError
- BigcommerceOAuthAPI::Error
show all
- Defined in:
- lib/bigcommerce-oauth-api/error.rb
Direct Known Subclasses
BadGateway, BadRequest, BandwidthLimitExceeded, Conflict, Forbidden, InsufficientStorage, InternalServerError, MethodAlreadyDefinedError, MethodNotAllowed, NonLegacyApi, NotAcceptable, NotFound, NotImplemented, RequestEntityTooLarge, ServiceUnavailable, TooManyRequests, Unauthorized, UnsupportedMediaType
Instance Method Summary
collapse
Instance Method Details
#inspect ⇒ Object
10
11
12
|
# File 'lib/bigcommerce-oauth-api/error.rb', line 10
def inspect
"#<BigcommerceOAuthAPI::Error: BigcommerceOAuthAPI::Error message=\"#{message}\">"
end
|
#to_h ⇒ Object
6
7
8
|
# File 'lib/bigcommerce-oauth-api/error.rb', line 6
def to_h
JSON.parse(message, symbolize_names: true) rescue {}
end
|