Module: Pago::V2026_04::Errors

Defined in:
lib/pago/v2026_04/errors.rb,
sig/pago/v2026_04/generated.rbs

Overview

Typed errors of the 2026-04 API.

Each declared error response gets its own class, inheriting from the generic Pago error matching its status code. Rescue the exact error to branch on a specific failure, or its parent to catch a whole family:

rescue Pago::NotFoundError => e   # every 404 of the API
rescue Pago::APIError => e        # anything the API rejected

Defined Under Namespace

Classes: AddMember400Error, AddMember401Error, AddMember403Error, AlreadyCanceledSubscription, AmbiguousExternalCustomerID, AssignSeat400Error, AssignSeat401Error, AssignSeat403Error, AssignSeat404Error, CannotCreateOrganizationError, CheckEmailUpdate401Error, ClaimSeat400Error, ClaimSeat403Error, ClientConfirm403Error, ClientUpdate403Error, CustomerNotReady, DisputeNotOpenError, ExpiredCheckoutError, Finalize402Error, Finalize403Error, GetClaimInfo400Error, GetClaimInfo403Error, GetClaimInfo404Error, HTTPValidationError, ListClaimedSubscriptions401Error, ListMembers401Error, ListMembers403Error, ListSeats401Error, ListSeats403Error, ListSeats404Error, ManualRetryLimitExceeded, MissingInvoiceBillingDetails, NotPermitted, OrderNotDraft, OrderNotEligibleForInvoice, OrderNotEligibleForRetry, PaymentAlreadyInProgress, PaymentError, PaymentFailed, PaymentMethodInUseByActiveSubscription, PaymentMethodSetupFailed, RefundedAlready, RemoveMember400Error, RemoveMember401Error, RemoveMember403Error, RemoveMember404Error, ResendInvitation400Error, ResendInvitation401Error, ResendInvitation403Error, ResendInvitation404Error, ResourceNotFound, RevokeSeat401Error, RevokeSeat403Error, RevokeSeat404Error, SSOEnforcementRequiresConnection, SubscriptionLocked, Unauthorized, Update403Error, Update404Error, UpdateMember400Error, UpdateMember401Error, UpdateMember403Error, UpdateMember404Error, VerifyEmailUpdate401Error, VerifyEmailUpdate422Error