Skip to content

Exceptions

AccountTransferRoutingException

AccountTransferRoutingException(
    message="An error occurred while routing account transfer",
)

Bases: PaymentGatewayException

Exception raised for errors in the account transfer routing process.

Attributes:

Name Type Description
message

Explanation of the error

Source code in components/payment_gateway/subcomponents/transfers/protected/exceptions.py
def __init__(
    self, message: str = "An error occurred while routing account transfer"
) -> None:
    self.message = f"Error when routing account transfer: {message}"
    super().__init__(self.message)

message instance-attribute

message = f'Error when routing account transfer: {message}'

BankTransferRoutingException

BankTransferRoutingException(
    message="An error occurred while routing bank transfer",
)

Bases: PaymentGatewayException

Exception raised for errors in the bank transfer routing process.

Attributes:

Name Type Description
message

Explanation of the error

Source code in components/payment_gateway/subcomponents/transfers/protected/exceptions.py
def __init__(
    self, message: str = "An error occurred while routing bank transfer"
) -> None:
    self.message = f"Error when routing bank transfer: {message}"
    super().__init__(self.message)

message instance-attribute

message = f'Error when routing bank transfer: {message}'

CardTransferRoutingException

CardTransferRoutingException(
    message="An error occurred while routing card transfer",
)

Bases: PaymentGatewayException

Exception raised for errors in the card transfer routing process.

Attributes:

Name Type Description
message

Explanation of the error

Source code in components/payment_gateway/subcomponents/transfers/protected/exceptions.py
def __init__(
    self, message: str = "An error occurred while routing card transfer"
) -> None:
    self.message = f"Error when routing card transfer: {message}"
    super().__init__(self.message)

message instance-attribute

message = f'Error when routing card transfer: {message}'