Class: ShellDataReportingApIs::APIException
- Inherits:
-
CoreLibrary::ApiException
- Object
- CoreLibrary::ApiException
- ShellDataReportingApIs::APIException
- Defined in:
- lib/shell_data_reporting_ap_is/exceptions/api_exception.rb
Overview
Class for exceptions when there is a network error, status code error, etc.
Direct Known Subclasses
CustomerManagementV1Accounts400ErrorException, CustomerManagementV1Accounts401ErrorException, CustomerManagementV1Accounts403ErrorException, CustomerManagementV1Accounts404ErrorException, CustomerManagementV1Accounts500ErrorException, CustomerManagementV1Auditreport400ErrorException, CustomerManagementV1Auditreport401ErrorException, CustomerManagementV1Auditreport403ErrorException, CustomerManagementV1Auditreport404ErrorException, CustomerManagementV1Auditreport500ErrorException, CustomerManagementV1Cardgroups400ErrorException, CustomerManagementV1Cardgroups401ErrorException, CustomerManagementV1Cardgroups403ErrorException, CustomerManagementV1Cardgroups404ErrorException, CustomerManagementV1Cardgroups500ErrorException, CustomerManagementV1Customer400ErrorException, CustomerManagementV1Customer401ErrorException, CustomerManagementV1Customer403ErrorException, CustomerManagementV1Customer404ErrorException, CustomerManagementV1Customer500ErrorException, CustomerManagementV1Payers400ErrorException, CustomerManagementV1Payers401ErrorException, CustomerManagementV1Payers403ErrorException, CustomerManagementV1Payers404ErrorException, CustomerManagementV1Payers500ErrorException, CustomerManagementV1Pricelist400ErrorException, CustomerManagementV1Pricelist401ErrorException, CustomerManagementV1Pricelist403ErrorException, CustomerManagementV1Pricelist404ErrorException, CustomerManagementV1Pricelist500ErrorException, CustomerManagementV2Cardtype400ErrorException, CustomerManagementV2Cardtype401ErrorException, CustomerManagementV2Cardtype403ErrorException, CustomerManagementV2Cardtype404ErrorException, CustomerManagementV2Cardtype500ErrorException, InvoiceManagementV1Dates400ErrorException, InvoiceManagementV1Dates401ErrorException, InvoiceManagementV1Dates403ErrorException, InvoiceManagementV1Dates404ErrorException, InvoiceManagementV1Dates500ErrorException, InvoiceManagementV1Download400ErrorException, InvoiceManagementV1Download401ErrorException, InvoiceManagementV1Download403ErrorException, InvoiceManagementV1Download404ErrorException, InvoiceManagementV1Download500ErrorException, InvoiceManagementV1Eiddownload400ErrorException, InvoiceManagementV1Eiddownload401ErrorException, InvoiceManagementV1Eiddownload403ErrorException, InvoiceManagementV1Eiddownload404ErrorException, InvoiceManagementV1Eiddownload500ErrorException, InvoiceManagementV1Eidsearch400ErrorException, InvoiceManagementV1Eidsearch401ErrorException, InvoiceManagementV1Eidsearch403ErrorException, InvoiceManagementV1Eidsearch404ErrorException, InvoiceManagementV1Eidsearch500ErrorException, InvoiceManagementV1Search400ErrorException, InvoiceManagementV1Search401ErrorException, InvoiceManagementV1Search403ErrorException, InvoiceManagementV1Search404ErrorException, InvoiceManagementV1Search500ErrorException, InvoiceManagementV1Searchdocuments400ErrorException, InvoiceManagementV1Searchdocuments401ErrorException, InvoiceManagementV1Searchdocuments403ErrorException, InvoiceManagementV1Searchdocuments404ErrorException, InvoiceManagementV1Searchdocuments500ErrorException, InvoiceManagementV1Searchstatementofaccount400ErrorException, InvoiceManagementV1Searchstatementofaccount401ErrorException, InvoiceManagementV1Searchstatementofaccount403ErrorException, InvoiceManagementV1Searchstatementofaccount404ErrorException, InvoiceManagementV1Searchstatementofaccount500ErrorException, InvoiceManagementV1Statementofaccount400ErrorException, InvoiceManagementV1Statementofaccount401ErrorException, InvoiceManagementV1Statementofaccount403ErrorException, InvoiceManagementV1Statementofaccount404ErrorException, InvoiceManagementV1Statementofaccount500ErrorException, InvoiceManagementV1Summary400ErrorException, InvoiceManagementV1Summary401ErrorException, InvoiceManagementV1Summary403ErrorException, InvoiceManagementV1Summary404ErrorException, InvoiceManagementV1Summary500ErrorException, OAuthProviderException, TransactionDataV1Cardusagesummary400ErrorException, TransactionDataV1Cardusagesummary401ErrorException, TransactionDataV1Cardusagesummary403ErrorException, TransactionDataV1Cardusagesummary404ErrorException, TransactionDataV1Cardusagesummary500ErrorException, TransactionDataV1Exceptions400ErrorException, TransactionDataV1Exceptions401ErrorException, TransactionDataV1Exceptions403ErrorException, TransactionDataV1Exceptions404ErrorException, TransactionDataV1Exceptions500ErrorException, TransactionDataV1Fees400ErrorException, TransactionDataV1Fees401ErrorException, TransactionDataV1Fees403ErrorException, TransactionDataV1Fees404ErrorException, TransactionDataV1Fees500ErrorException, TransactionDataV1Feessummary400ErrorException, TransactionDataV1Feessummary401ErrorException, TransactionDataV1Feessummary403ErrorException, TransactionDataV1Feessummary404ErrorException, TransactionDataV1Feessummary500ErrorException, TransactionDataV1Fuelconsumption400ErrorException, TransactionDataV1Fuelconsumption401ErrorException, TransactionDataV1Fuelconsumption403ErrorException, TransactionDataV1Fuelconsumption404ErrorException, TransactionDataV1Fuelconsumption500ErrorException, TransactionDataV1Multipayerspricedtransactions400ErrorException, TransactionDataV1Multipayerspricedtransactions401ErrorException, TransactionDataV1Multipayerspricedtransactions403ErrorException, TransactionDataV1Multipayerspricedtransactions404ErrorException, TransactionDataV1Multipayerspricedtransactions500ErrorException, TransactionDataV1Priced400ErrorException, TransactionDataV1Priced401ErrorException, TransactionDataV1Priced403ErrorException, TransactionDataV1Priced404ErrorException, TransactionDataV1Priced500ErrorException, TransactionDataV1Pricedtransaction400ErrorException, TransactionDataV1Pricedtransaction401ErrorException, TransactionDataV1Pricedtransaction403ErrorException, TransactionDataV1Pricedtransaction404ErrorException, TransactionDataV1Pricedtransaction500ErrorException, TransactionDataV1Pricedtransactionssummary400ErrorException, TransactionDataV1Pricedtransactionssummary401ErrorException, TransactionDataV1Pricedtransactionssummary403ErrorException, TransactionDataV1Pricedtransactionssummary404ErrorException, TransactionDataV1Pricedtransactionssummary500ErrorException, TransactionDataV1Recent400ErrorException, TransactionDataV1Recent401ErrorException, TransactionDataV1Recent403ErrorException, TransactionDataV1Recent404ErrorException, TransactionDataV1Recent500ErrorException, TransactionDataV1Updateodometer400ErrorException, TransactionDataV1Updateodometer401ErrorException, TransactionDataV1Updateodometer403ErrorException, TransactionDataV1Updateodometer404ErrorException, TransactionDataV1Updateodometer500ErrorException, TransactionDataV1Volumebasedbonus400ErrorException, TransactionDataV1Volumebasedbonus401ErrorException, TransactionDataV1Volumebasedbonus403ErrorException, TransactionDataV1Volumebasedbonus404ErrorException, TransactionDataV1Volumebasedbonus500ErrorException, TransactionDataV1Volumebasedpricing400ErrorException, TransactionDataV1Volumebasedpricing401ErrorException, TransactionDataV1Volumebasedpricing403ErrorException, TransactionDataV1Volumebasedpricing404ErrorException, TransactionDataV1Volumebasedpricing500ErrorException, UserManagementV1Loggedinuser400ErrorException, UserManagementV1Loggedinuser401ErrorException, UserManagementV1Loggedinuser403ErrorException, UserManagementV1Loggedinuser404ErrorException, UserManagementV1Loggedinuser500ErrorException
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/shell_data_reporting_ap_is/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/shell_data_reporting_ap_is/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 |