"""Logic exceptions.""" class LogicError(Exception): """Generic exception that may be thrown on business rules validation errors. Intended to be thrown in business logic layer and processed on the same or the top level layers. The use case is the same as payment.utils.format_error.validation_error but without leaking the HTTP abstraction into the logic layer. """