Class: AdvancedBilling::APIException
- Inherits:
-
CoreLibrary::ApiException
- Object
- CoreLibrary::ApiException
- AdvancedBilling::APIException
- Defined in:
- lib/advanced_billing/exceptions/api_exception.rb
Overview
Class for exceptions when there is a network error, status code error, etc.
Direct Known Subclasses
ComponentAllocationErrorException, ComponentPricePointErrorException, CustomerErrorResponseException, ErrorArrayMapResponseException, ErrorListResponseException, ErrorStringMapResponseException, EventBasedBillingListSegmentsErrorsException, EventBasedBillingSegmentErrorsException, EventBasedBillingSegmentException, ProductPricePointErrorResponseException, ProformaBadRequestErrorResponseException, RefundPrepaymentBaseErrorsResponseException, SingleErrorResponseException, SingleStringErrorResponseException, SubscriptionAddCouponErrorException, SubscriptionComponentAllocationErrorException, SubscriptionGroupCreateErrorResponseException, SubscriptionGroupSignupErrorResponseException, SubscriptionGroupUpdateErrorResponseException, SubscriptionRemoveCouponErrorsException, SubscriptionResponseErrorException, SubscriptionsMrrErrorResponseException, TooManyManagementLinkRequestsErrorException
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.
16 17 18 19 |
# File 'lib/advanced_billing/exceptions/api_exception.rb', line 16 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.
10 11 12 13 |
# File 'lib/advanced_billing/exceptions/api_exception.rb', line 10 def to_s class_name = self.class.name.split('::').last "<#{class_name} status_code: #{@response_code}, reason: #{@reason}>" end |