Class: InventoryManagementAndItemManagementAndOrderManagementAndPriceManagement::APIException
- Inherits:
-
CoreLibrary::ApiException
- Object
- CoreLibrary::ApiException
- InventoryManagementAndItemManagementAndOrderManagementAndPriceManagement::APIException
- Defined in:
- lib/inventory_management_and_item_management_and_order_management_and_price_management/exceptions/api_exception.rb
Overview
Class for exceptions when there is a network error, status code error, etc.
Direct Known Subclasses
Items400ErrorException, Items404ErrorException, Items500ErrorException, ItemsAssociations400ErrorException, ItemsAssociations500ErrorException, ItemsCatalogSearch400ErrorException, ItemsCatalogSearch404ErrorException, ItemsCatalogSearch500ErrorException, ItemsCount400ErrorException, ItemsCount500ErrorException, ItemsGroupsCount400ErrorException, ItemsGroupsCount500ErrorException, ItemsSpec400ErrorException, ItemsSpec500ErrorException, ItemsTaxonomy400ErrorException, ItemsTaxonomy404ErrorException, ItemsWalmartSearch400ErrorException, ItemsWalmartSearch500ErrorException
Instance Method Summary collapse
-
#inspect ⇒ Object
Provides a debugging-friendly string with detailed object information.
-
#to_s ⇒ Object
Provides a human-readable string representation of the object.
Instance Method Details
#inspect ⇒ Object
Provides a debugging-friendly string with detailed object information.
17 18 19 20 |
# File 'lib/inventory_management_and_item_management_and_order_management_and_price_management/exceptions/api_exception.rb', line 17 def inspect class_name = self.class.name.split('::').last "<#{class_name} status_code: #{@response_code.inspect}, reason: #{@reason.inspect}>" end |
#to_s ⇒ Object
Provides a human-readable string representation of the object.
11 12 13 14 |
# File 'lib/inventory_management_and_item_management_and_order_management_and_price_management/exceptions/api_exception.rb', line 11 def to_s class_name = self.class.name.split('::').last "<#{class_name} status_code: #{@response_code}, reason: #{@reason}>" end |