Class: VisaAcceptanceMergedSpec::APIException
- Inherits:
-
CoreLibrary::ApiException
- Object
- CoreLibrary::ApiException
- VisaAcceptanceMergedSpec::APIException
- Defined in:
- lib/visa_acceptance_merged_spec/exceptions/api_exception.rb
Overview
Class for exceptions when there is a network error, status code error, etc.
Direct Known Subclasses
DeleteCustomerException1Exception, DeleteCustomerException21Exception, DeleteCustomerException31Exception, DeleteCustomerException41Exception, DeleteCustomerException61Exception, DeleteCustomerPaymentInstrumentException1Exception, DeleteCustomerPaymentInstrumentException21Exception, DeleteCustomerPaymentInstrumentException31Exception, DeleteCustomerPaymentInstrumentException41Exception, DeleteCustomerPaymentInstrumentException51Exception, DeleteCustomerPaymentInstrumentException71Exception, DeleteCustomerShippingAddressException1Exception, DeleteCustomerShippingAddressException21Exception, DeleteCustomerShippingAddressException31Exception, DeleteCustomerShippingAddressException41Exception, DeleteCustomerShippingAddressException51Exception, DeleteCustomerShippingAddressException71Exception, DeleteInstrumentIdentifierException1Exception, DeleteInstrumentIdentifierException21Exception, DeleteInstrumentIdentifierException31Exception, DeleteInstrumentIdentifierException41Exception, DeleteInstrumentIdentifierException61Exception, DeletePaymentInstrumentException1Exception, DeletePaymentInstrumentException21Exception, DeletePaymentInstrumentException31Exception, DeletePaymentInstrumentException51Exception, DeleteTokenizedCardException1Exception, DeleteTokenizedCardException21Exception, DeleteTokenizedCardException31Exception, DeleteTokenizedCardException41Exception, DeleteTokenizedCardException61Exception, GetCustomerException1Exception, GetCustomerException21Exception, GetCustomerException31Exception, GetCustomerException41Exception, GetCustomerException61Exception, GetCustomerPaymentInstrumentException1Exception, GetCustomerPaymentInstrumentException21Exception, GetCustomerPaymentInstrumentException31Exception, GetCustomerPaymentInstrumentException41Exception, GetCustomerPaymentInstrumentException61Exception, GetCustomerPaymentInstrumentsListException1Exception, GetCustomerPaymentInstrumentsListException21Exception, GetCustomerPaymentInstrumentsListException31Exception, GetCustomerPaymentInstrumentsListException41Exception, GetCustomerPaymentInstrumentsListException61Exception, GetCustomerShippingAddressException1Exception, GetCustomerShippingAddressException21Exception, GetCustomerShippingAddressException31Exception, GetCustomerShippingAddressException41Exception, GetCustomerShippingAddressException61Exception, GetCustomerShippingAddressesListException1Exception, GetCustomerShippingAddressesListException21Exception, GetCustomerShippingAddressesListException31Exception, GetCustomerShippingAddressesListException41Exception, GetCustomerShippingAddressesListException61Exception, GetInstrumentIdentifierException1Exception, GetInstrumentIdentifierException21Exception, GetInstrumentIdentifierException31Exception, GetInstrumentIdentifierException41Exception, GetInstrumentIdentifierException61Exception, GetInstrumentIdentifierPaymentInstrumentsListException1Exception, GetInstrumentIdentifierPaymentInstrumentsListException21Exception, GetInstrumentIdentifierPaymentInstrumentsListException31Exception, GetInstrumentIdentifierPaymentInstrumentsListException41Exception, GetInstrumentIdentifierPaymentInstrumentsListException61Exception, GetPaymentInstrumentException1Exception, GetPaymentInstrumentException21Exception, GetPaymentInstrumentException31Exception, GetPaymentInstrumentException41Exception, GetPaymentInstrumentException61Exception, GetTokenizedCardException1Exception, GetTokenizedCardException21Exception, GetTokenizedCardException31Exception, GetTokenizedCardException51Exception, PatchCustomerException1Exception, PatchCustomerException21Exception, PatchCustomerException31Exception, PatchCustomerException41Exception, PatchCustomerException51Exception, PatchCustomerException71Exception, PatchCustomersPaymentInstrumentException1Exception, PatchCustomersPaymentInstrumentException21Exception, PatchCustomersPaymentInstrumentException31Exception, PatchCustomersPaymentInstrumentException41Exception, PatchCustomersPaymentInstrumentException51Exception, PatchCustomersPaymentInstrumentException71Exception, PatchCustomersShippingAddressException1Exception, PatchCustomersShippingAddressException21Exception, PatchCustomersShippingAddressException31Exception, PatchCustomersShippingAddressException41Exception, PatchCustomersShippingAddressException51Exception, PatchCustomersShippingAddressException71Exception, PatchInstrumentIdentifierException1Exception, PatchInstrumentIdentifierException21Exception, PatchInstrumentIdentifierException31Exception, PatchInstrumentIdentifierException41Exception, PatchInstrumentIdentifierException51Exception, PatchInstrumentIdentifierException71Exception, PatchPaymentInstrumentException1Exception, PatchPaymentInstrumentException21Exception, PatchPaymentInstrumentException31Exception, PatchPaymentInstrumentException41Exception, PatchPaymentInstrumentException51Exception, PatchPaymentInstrumentException71Exception, PostCustomerException1Exception, PostCustomerException21Exception, PostCustomerException31Exception, PostCustomerException41Exception, PostCustomerException51Exception, PostCustomerPaymentInstrumentException1Exception, PostCustomerPaymentInstrumentException21Exception, PostCustomerPaymentInstrumentException31Exception, PostCustomerPaymentInstrumentException41Exception, PostCustomerPaymentInstrumentException51Exception, PostCustomerShippingAddressException1Exception, PostCustomerShippingAddressException21Exception, PostCustomerShippingAddressException31Exception, PostCustomerShippingAddressException41Exception, PostCustomerShippingAddressException51Exception, PostInstrumentIdentifierEnrollmentException1Exception, PostInstrumentIdentifierEnrollmentException21Exception, PostInstrumentIdentifierEnrollmentException31Exception, PostInstrumentIdentifierEnrollmentException41Exception, PostInstrumentIdentifierEnrollmentException61Exception, PostInstrumentIdentifierException1Exception, PostInstrumentIdentifierException21Exception, PostInstrumentIdentifierException31Exception, PostInstrumentIdentifierException41Exception, PostInstrumentIdentifierException51Exception, PostPaymentInstrumentException1Exception, PostPaymentInstrumentException21Exception, PostPaymentInstrumentException31Exception, PostPaymentInstrumentException41Exception, PostPaymentInstrumentException51Exception, PostTokenizedCardException1Exception, PostTokenizedCardException21Exception, PostTokenizedCardException31Exception, PostTokenizedCardException41Exception, PostTokenizedCardException51Exception, PtsV1TransactionBatchesGet400Response1Exception, PtsV1TransactionBatchesGet401Response1Exception, PtsV1TransactionBatchesGet403Response1Exception, PtsV1TransactionBatchesGet404Response1Exception, PtsV1TransactionBatchesGet500Response1Exception, PtsV1TransactionBatchesGet502Response1Exception, PtsV2CapturesRefundsPost400Response1Exception, PtsV2CapturesRefundsPost502Response1Exception, PtsV2CapturesVoidsPost400Response1Exception, PtsV2CapturesVoidsPost502Response1Exception, PtsV2CreateBillingAgreementPost400Response1Exception, PtsV2CreateBillingAgreementPost502Response1Exception, PtsV2CreateOrderPost400Response1Exception, PtsV2CreateOrderPost502Response1Exception, PtsV2CreditsPost400Response1Exception, PtsV2CreditsPost400Response21Exception, PtsV2CreditsPost502Response1Exception, PtsV2CreditsPost502Response21Exception, PtsV2CreditsVoidsPost400Response1Exception, PtsV2CreditsVoidsPost502Response1Exception, PtsV2IncrementalAuthorizationPatch400Response1Exception, PtsV2IncrementalAuthorizationPatch502Response1Exception, PtsV2ModifyBillingAgreementPost400Response1Exception, PtsV2ModifyBillingAgreementPost502Response1Exception, PtsV2PaymentsCapturesPost400Response1Exception, PtsV2PaymentsCapturesPost502Response1Exception, PtsV2PaymentsPost400Response11Exception, PtsV2PaymentsPost502Response11Exception, PtsV2PaymentsRefundPost400Response1Exception, PtsV2PaymentsRefundPost502Response1Exception, PtsV2PaymentsReversalsPost400Response1Exception, PtsV2PaymentsReversalsPost502Response1Exception, PtsV2PaymentsVoidsPost400Response1Exception, PtsV2PaymentsVoidsPost502Response1Exception, PtsV2RefundsVoidsPost400Response1Exception, PtsV2RefundsVoidsPost502Response1Exception, PtsV2RetrievePaymentTokenGet400Response1Exception, PtsV2RetrievePaymentTokenGet502Response1Exception, PtsV2ReversalsPost400Response1Exception, PtsV2ReversalsPost502Response1Exception, PtsV2UpdateOrderPatch400Response1Exception, PtsV2UpdateOrderPatch502Response1Exception, PtsV2VoidsPost400Response1Exception, PtsV2VoidsPost502Response1Exception
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/visa_acceptance_merged_spec/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/visa_acceptance_merged_spec/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 |