Skip to content

Exceptions

ExpenseLimitRuleNotFoundException

Bases: PaymentRulesException

Exception raised when trying to use a non-existing Expense Limit Rule.

ExpenseLimitRuleTerminatedException

Bases: PaymentRulesException

Exception raised when trying to use a terminated Expense Limit Rule.

InvalidValidityPeriodException

Bases: PaymentRulesException, ValueError

Exception raised when creating or updating a Rule with invalid start/end dates.

PaymentRulesException

Bases: PaymentGatewayException

Base class for all Rules exceptions.

UsageRestrictionRuleNotFoundException

Bases: PaymentRulesException

Exception raised when trying to use a non-existing Usage Restriction Rule.

UsageRestrictionRuleTerminatedException

Bases: PaymentRulesException

Exception raised when trying to use a terminated Usage Restriction Rule.