Skip to content

Exceptions

AccountTransferNotFoundException

AccountTransferNotFoundException(
    message="Account transfer not found",
)

Bases: PaymentTransferException

Exception raised for errors when an account transfer is not found.

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 = "Account transfer not found") -> None:
    self.message = f"Account transfer not found: {message}"
    super().__init__(self.message)

message instance-attribute

message = f'Account transfer not found: {message}'

AccountTransferRoutingException

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

Bases: PaymentTransferException

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}'

BankTransferNotFoundException

BankTransferNotFoundException(
    message="Bank transfer not found",
)

Bases: PaymentTransferException

Exception raised for errors when a bank transfer is not found.

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 = "Bank transfer not found") -> None:
    self.message = f"Bank transfer not found: {message}"
    super().__init__(self.message)

message instance-attribute

message = f'Bank transfer not found: {message}'

BankTransferRoutingException

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

Bases: PaymentTransferException

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}'

CardTransferNotFoundException

CardTransferNotFoundException(
    message="Card transfer not found",
)

Bases: PaymentTransferException

Exception raised for errors when a card transfer is not found.

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 = "Card transfer not found") -> None:
    self.message = f"Card transfer not found: {message}"
    super().__init__(self.message)

message instance-attribute

message = f'Card transfer not found: {message}'

CardTransferRoutingException

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

Bases: PaymentTransferException

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}'

PaymentTransferException

Bases: PaymentGatewayException

Base class for all Transfer exceptions.

TransferEventAssociationException

TransferEventAssociationException(
    message="An error occurred while associating transfer events",
)

Bases: PaymentTransferException

Exception raised for errors in the transfer event association 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 associating transfer events"
) -> None:
    self.message = f"Error when associating transfer events: {message}"
    super().__init__(self.message)

message instance-attribute

message = (
    f"Error when associating transfer events: {message}"
)