Class: CyberSourceMergedSpec::APIException

Inherits:
CoreLibrary::ApiException
  • Object
show all
Defined in:
lib/cyber_source_merged_spec/exceptions/api_exception.rb

Overview

Class for exceptions when there is a network error, status code error, etc.

Direct Known Subclasses

ActionDecisionManagerCaseException, ActionDecisionManagerCaseException2Exception, ActionDecisionManagerCaseException3Exception, ActionDecisionManagerCaseException4Exception, ActionDecisionManagerCaseException5Exception, ActionDecisionManagerCaseException6Exception, ActivatePlanException, ActivatePlanException2Exception, ActivatePlanException3Exception, ActivateSubscriptionException, ActivateSubscriptionException2Exception, ActivateSubscriptionException3Exception, BinLookup403ResponseException, BinLookupv400ResponseException, CancelSubscriptionException, CancelSubscriptionException2Exception, CancelSubscriptionException3Exception, CommentDecisionManagerCaseException, CommentDecisionManagerCaseException2Exception, CommentDecisionManagerCaseException3Exception, CommentDecisionManagerCaseException4Exception, CommentDecisionManagerCaseException5Exception, CommentDecisionManagerCaseException6Exception, CreateFollowOnSubscriptionException, CreateFollowOnSubscriptionException2Exception, CreateMerchantDefinedFieldDefinitionException, CreatePlanException, CreatePlanException2Exception, CreateStandardOrClassicSubscriptionException, CreateSubscriptionException, CreateSubscriptionException2Exception, CreateSubscriptionException3Exception, DeactivatePlanException, DeactivatePlanException2Exception, DeactivatePlanException3Exception, DeleteCustomerException, DeleteCustomerException2Exception, DeleteCustomerException3Exception, DeleteCustomerException4Exception, DeleteCustomerException5Exception, DeleteCustomerException6Exception, DeleteCustomerPaymentInstrumentException, DeleteCustomerPaymentInstrumentException2Exception, DeleteCustomerPaymentInstrumentException3Exception, DeleteCustomerPaymentInstrumentException4Exception, DeleteCustomerPaymentInstrumentException5Exception, DeleteCustomerPaymentInstrumentException6Exception, DeleteCustomerPaymentInstrumentException7Exception, DeleteCustomerShippingAddressException, DeleteCustomerShippingAddressException2Exception, DeleteCustomerShippingAddressException3Exception, DeleteCustomerShippingAddressException4Exception, DeleteCustomerShippingAddressException5Exception, DeleteCustomerShippingAddressException6Exception, DeleteCustomerShippingAddressException7Exception, DeleteInstrumentIdentifierException, DeleteInstrumentIdentifierException2Exception, DeleteInstrumentIdentifierException3Exception, DeleteInstrumentIdentifierException4Exception, DeleteInstrumentIdentifierException5Exception, DeleteInstrumentIdentifierException6Exception, DeletePaymentInstrumentException, DeletePaymentInstrumentException2Exception, DeletePaymentInstrumentException3Exception, DeletePaymentInstrumentException4Exception, DeletePaymentInstrumentException5Exception, DeletePlanException, DeletePlanException2Exception, DeletePlanException3Exception, GenerateCaptureContextException, GetAccountInfoException, GetAllSubscriptionsException, GetAllSubscriptionsException2Exception, GetCustomerException, GetCustomerException2Exception, GetCustomerException3Exception, GetCustomerException4Exception, GetCustomerException5Exception, GetCustomerException6Exception, GetCustomerPaymentInstrumentException, GetCustomerPaymentInstrumentException2Exception, GetCustomerPaymentInstrumentException3Exception, GetCustomerPaymentInstrumentException4Exception, GetCustomerPaymentInstrumentException5Exception, GetCustomerPaymentInstrumentException6Exception, GetCustomerPaymentInstrumentsListException, GetCustomerPaymentInstrumentsListException2Exception, GetCustomerPaymentInstrumentsListException3Exception, GetCustomerPaymentInstrumentsListException4Exception, GetCustomerPaymentInstrumentsListException5Exception, GetCustomerPaymentInstrumentsListException6Exception, GetCustomerShippingAddressException, GetCustomerShippingAddressException2Exception, GetCustomerShippingAddressException3Exception, GetCustomerShippingAddressException4Exception, GetCustomerShippingAddressException5Exception, GetCustomerShippingAddressException6Exception, GetCustomerShippingAddressesListException, GetCustomerShippingAddressesListException2Exception, GetCustomerShippingAddressesListException3Exception, GetCustomerShippingAddressesListException4Exception, GetCustomerShippingAddressesListException5Exception, GetCustomerShippingAddressesListException6Exception, GetFileException, GetFollowOnSubscriptionException, GetFollowOnSubscriptionException2Exception, GetFollowOnSubscriptionException3Exception, GetInstrumentIdentifierException, GetInstrumentIdentifierException2Exception, GetInstrumentIdentifierException3Exception, GetInstrumentIdentifierException4Exception, GetInstrumentIdentifierException5Exception, GetInstrumentIdentifierException6Exception, GetInstrumentIdentifierPaymentInstrumentsListException, GetInstrumentIdentifierPaymentInstrumentsListException2Exception, GetInstrumentIdentifierPaymentInstrumentsListException3Exception, GetInstrumentIdentifierPaymentInstrumentsListException4Exception, GetInstrumentIdentifierPaymentInstrumentsListException5Exception, GetInstrumentIdentifierPaymentInstrumentsListException6Exception, GetMerchantDefinedFieldsDefinitionsException, GetPaymentInstrumentException, GetPaymentInstrumentException2Exception, GetPaymentInstrumentException3Exception, GetPaymentInstrumentException4Exception, GetPaymentInstrumentException5Exception, GetPaymentInstrumentException6Exception, GetPlanCodeException, GetPlanCodeException2Exception, GetPlanException, GetPlanException2Exception, GetPlanException3Exception, GetPlansException, GetPlansException2Exception, GetSubscriptionCodeException, GetSubscriptionCodeException2Exception, GetSubscriptionException, GetSubscriptionException2Exception, GetSubscriptionException3Exception, GetTokenizedCardException, GetTokenizedCardException2Exception, GetTokenizedCardException3Exception, GetTokenizedCardException4Exception, GetTokenizedCardException5Exception, InvoicingV2InvoiceSettingsGet400ResponseException, InvoicingV2InvoiceSettingsGet502ResponseException, InvoicingV2InvoiceSettingsPut400ResponseException, InvoicingV2InvoiceSettingsPut502ResponseException, InvoicingV2InvoicesAllGet400ResponseException, InvoicingV2InvoicesAllGet404ResponseException, InvoicingV2InvoicesAllGet502ResponseException, InvoicingV2InvoicesCancel400ResponseException, InvoicingV2InvoicesCancel404ResponseException, InvoicingV2InvoicesCancel502ResponseException, InvoicingV2InvoicesGet400ResponseException, InvoicingV2InvoicesGet404ResponseException, InvoicingV2InvoicesGet502ResponseException, InvoicingV2InvoicesPost400ResponseException, InvoicingV2InvoicesPost404ResponseException, InvoicingV2InvoicesPost502ResponseException, InvoicingV2InvoicesPublish400ResponseException, InvoicingV2InvoicesPublish404ResponseException, InvoicingV2InvoicesPublish502ResponseException, InvoicingV2InvoicesPut400ResponseException, InvoicingV2InvoicesPut404ResponseException, InvoicingV2InvoicesPut502ResponseException, InvoicingV2InvoicesSend400ResponseException, InvoicingV2InvoicesSend404ResponseException, InvoicingV2InvoicesSend502ResponseException, PatchCustomerException, PatchCustomerException2Exception, PatchCustomerException3Exception, PatchCustomerException4Exception, PatchCustomerException5Exception, PatchCustomerException6Exception, PatchCustomerException7Exception, PatchCustomersPaymentInstrumentException, PatchCustomersPaymentInstrumentException2Exception, PatchCustomersPaymentInstrumentException3Exception, PatchCustomersPaymentInstrumentException4Exception, PatchCustomersPaymentInstrumentException5Exception, PatchCustomersPaymentInstrumentException6Exception, PatchCustomersPaymentInstrumentException7Exception, PatchCustomersShippingAddressException, PatchCustomersShippingAddressException2Exception, PatchCustomersShippingAddressException3Exception, PatchCustomersShippingAddressException4Exception, PatchCustomersShippingAddressException5Exception, PatchCustomersShippingAddressException6Exception, PatchCustomersShippingAddressException7Exception, PatchInstrumentIdentifierException, PatchInstrumentIdentifierException2Exception, PatchInstrumentIdentifierException3Exception, PatchInstrumentIdentifierException4Exception, PatchInstrumentIdentifierException5Exception, PatchInstrumentIdentifierException6Exception, PatchInstrumentIdentifierException7Exception, PatchPaymentInstrumentException, PatchPaymentInstrumentException2Exception, PatchPaymentInstrumentException3Exception, PatchPaymentInstrumentException4Exception, PatchPaymentInstrumentException5Exception, PatchPaymentInstrumentException6Exception, PatchPaymentInstrumentException7Exception, PostCustomerException, PostCustomerException2Exception, PostCustomerException3Exception, PostCustomerException4Exception, PostCustomerException5Exception, PostCustomerPaymentInstrumentException, PostCustomerPaymentInstrumentException2Exception, PostCustomerPaymentInstrumentException3Exception, PostCustomerPaymentInstrumentException4Exception, PostCustomerPaymentInstrumentException5Exception, PostCustomerShippingAddressException, PostCustomerShippingAddressException2Exception, PostCustomerShippingAddressException3Exception, PostCustomerShippingAddressException4Exception, PostCustomerShippingAddressException5Exception, PostInstrumentIdentifierEnrollmentException, PostInstrumentIdentifierEnrollmentException2Exception, PostInstrumentIdentifierEnrollmentException3Exception, PostInstrumentIdentifierEnrollmentException4Exception, PostInstrumentIdentifierEnrollmentException5Exception, PostInstrumentIdentifierEnrollmentException6Exception, PostInstrumentIdentifierException, PostInstrumentIdentifierException2Exception, PostInstrumentIdentifierException3Exception, PostInstrumentIdentifierException4Exception, PostInstrumentIdentifierException5Exception, PostIssuerLifeCycleSimulationException, PostIssuerLifeCycleSimulationException2Exception, PostIssuerLifeCycleSimulationException3Exception, PostIssuerLifeCycleSimulationException4Exception, PostPaymentInstrumentException, PostPaymentInstrumentException2Exception, PostPaymentInstrumentException3Exception, PostPaymentInstrumentException4Exception, PostPaymentInstrumentException5Exception, PostTokenPaymentCredentialsException, PostTokenPaymentCredentialsException1Exception, PostTokenPaymentCredentialsException2Exception, PostTokenPaymentCredentialsException3Exception, PostTokenPaymentCredentialsException4Exception, PostTokenPaymentCredentialsException5Exception, PostTokenPaymentCredentialsV3Exception, PostTokenPaymentCredentialsV3Exception1Exception, PostTokenPaymentCredentialsV3Exception2Exception, PostTokenPaymentCredentialsV3Exception3Exception, PostTokenPaymentCredentialsV3Exception4Exception, PostTokenPaymentCredentialsV3Exception5Exception, PostTokenPaymentCredentialsV3Exception6Exception, PostTokenizedCardDeleteException, PostTokenizedCardDeleteException2Exception, PostTokenizedCardDeleteException3Exception, PostTokenizedCardDeleteException4Exception, PostTokenizedCardDeleteException5Exception, PostTokenizedCardDeleteException6Exception, PostTokenizedCardDeleteException7Exception, PostTokenizedCardException, PostTokenizedCardException2Exception, PostTokenizedCardException3Exception, PostTokenizedCardException4Exception, PostTokenizedCardException5Exception, PtsV1TransactionBatchDetailsGet400ResponseException, PtsV1TransactionBatchDetailsGet401ResponseException, PtsV1TransactionBatchDetailsGet403ResponseException, PtsV1TransactionBatchDetailsGet404ResponseException, PtsV1TransactionBatchDetailsGet502ResponseException, PtsV1TransactionBatchesGet400ResponseException, PtsV1TransactionBatchesGet401ResponseException, PtsV1TransactionBatchesGet403ResponseException, PtsV1TransactionBatchesGet404ResponseException, PtsV1TransactionBatchesGet500ResponseException, PtsV1TransactionBatchesGet502ResponseException, PtsV2CapturesRefundsPost400ResponseException, PtsV2CapturesRefundsPost502ResponseException, PtsV2CapturesVoidsPost400ResponseException, PtsV2CapturesVoidsPost502ResponseException, PtsV2CreateBillingAgreementPost400ResponseException, PtsV2CreateBillingAgreementPost502ResponseException, PtsV2CreateOrderPost400ResponseException, PtsV2CreateOrderPost502ResponseException, PtsV2CreditsPost400Response2Exception, PtsV2CreditsPost400ResponseException, PtsV2CreditsPost502Response2Exception, PtsV2CreditsPost502ResponseException, PtsV2CreditsVoidsPost400ResponseException, PtsV2CreditsVoidsPost502ResponseException, PtsV2IncrementalAuthorizationPatch400ResponseException, PtsV2IncrementalAuthorizationPatch502ResponseException, PtsV2ModifyBillingAgreementPost400ResponseException, PtsV2ModifyBillingAgreementPost502ResponseException, PtsV2PaymentsCapturesPost400ResponseException, PtsV2PaymentsCapturesPost502ResponseException, PtsV2PaymentsPost400ResponseException, PtsV2PaymentsPost502ResponseException, PtsV2PaymentsRefundPost400ResponseException, PtsV2PaymentsRefundPost502ResponseException, PtsV2PaymentsReversalsPost400ResponseException, PtsV2PaymentsReversalsPost502ResponseException, PtsV2PaymentsVoidsPost400ResponseException, PtsV2PaymentsVoidsPost502ResponseException, PtsV2PayoutsPost400ResponseException, PtsV2PayoutsPost502ResponseException, PtsV2RefundsVoidsPost400ResponseException, PtsV2RefundsVoidsPost502ResponseException, PtsV2RetrievePaymentTokenGet400ResponseException, PtsV2RetrievePaymentTokenGet502ResponseException, PtsV2ReversalsPost400ResponseException, PtsV2ReversalsPost502ResponseException, PtsV2UpdateOrderPatch400ResponseException, PtsV2UpdateOrderPatch502ResponseException, PtsV2VoidsPost400ResponseException, PtsV2VoidsPost502ResponseException, PullFunds400ResponseException, PullFunds401ResponseException, PullFunds404ResponseException, PullFunds502ResponseException, PullFundsRefund400ResponseException, PullFundsRefund401ResponseException, PullFundsRefund404ResponseException, PullFundsRefund502ResponseException, PullFundsReversal400ResponseException, PullFundsReversal401ResponseException, PullFundsReversal404ResponseException, PullFundsReversal502ResponseException, PutMerchantDefinedFieldsDefinitionsException, ReportingV3ConversionDetailsGet400ResponseException, ReportingV3NetFundingsGet400ResponseException, ReportingV3NetFundingsGet500ResponseException, ReportingV3NotificationofChangesGet400ResponseException, ReportingV3NotificationofChangesGet404ResponseException, ReportingV3NotificationofChangesGet500ResponseException, ReportingV3PaymentBatchSummariesGet200Response1Exception, ReportingV3PurchaseRefundDetailsGet400ResponseException, ReportingV3PurchaseRefundDetailsGet401ResponseException, ReportingV3PurchaseRefundDetailsGet404ResponseException, ReportingV3PurchaseRefundDetailsGet500ResponseException, ReportingV3ReportDefinitionsGet400ResponseException, ReportingV3ReportDefinitionsNameGet400ResponseException, ReportingV3ReportSubscriptionsGet400ResponseException, ReportingV3ReportSubscriptionsNameDelete400ResponseException, ReportingV3ReportSubscriptionsNameGet400ResponseException, ReportingV3ReportSubscriptionsnameDelete404ResponseException, ReportingV3ReportsGet400ResponseException, ReportingV3ReportsIdPost400ResponseException, ReportingV3ReportsPost400ResponseException, Reportingv3ReportDownloadsGet400ResponseException, RiskV1AddressVerificationsPost400ResponseException, RiskV1AddressVerificationsPost502ResponseException, RiskV1AuthenticationResultsPost400ResponseException, RiskV1AuthenticationResultsPost502ResponseException, RiskV1AuthenticationsPost400Response2Exception, RiskV1AuthenticationsPost400ResponseException, RiskV1AuthenticationsPost502ResponseException, RiskV1DecisionsPost400Response2Exception, RiskV1DecisionsPost400ResponseException, RiskV1DecisionsPost502ResponseException, RiskV1ExportComplianceInquiriesPost400ResponseException, RiskV1ExportComplianceInquiriesPost502ResponseException, SubscriptionsIdPaymentsGetException, SubscriptionsIdPaymentsGetException2Exception, SubscriptionsIdPaymentsGetException3Exception, SubscriptionsIdPaymentsPutException, SubscriptionsIdPaymentsPutException2Exception, SubscriptionsIdPaymentsPutException3Exception, SuspendSubscriptionException, SuspendSubscriptionException2Exception, SuspendSubscriptionException3Exception, TokenizeException, TokenizeException2Exception, TokenizeException3Exception, TokenizeException4Exception, TssV2TransactionsPost400ResponseException, TssV2TransactionsPost502ResponseException, UpdatePlanException, UpdatePlanException2Exception, UpdateSubscriptionException, UpdateSubscriptionException2Exception, UpdateSubscriptionException3Exception, V1FileDetailsGet401ResponseException, V1FileDetailsGet404ResponseException, V1FileDetailsGet500ResponseException, V1FilesGet400ResponseException

Instance Method Summary collapse

Instance Method Details

#inspectObject

Provides a debugging-friendly string with detailed object information.



16
17
18
19
# File 'lib/cyber_source_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_sObject

Provides a human-readable string representation of the object.



10
11
12
13
# File 'lib/cyber_source_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