com.ibm.commerce.payments.plugin

Class PluginException

See Also:
Serialized Form
    • Constructor Detail

      • PluginException

        public PluginException()

        This method is the default constructor.

      • PluginException

        public PluginException(java.lang.String resourceBundleName,
                               java.lang.String messageKey,
                               java.lang.Object[] formatArguments,
                               java.lang.String defaultText)

        This method is the constructor with a localized message.

        Parameters:
        resourceBundleName - The name of the resource bundle to be used to generate a localized exception message
        messageKey - The key to identify the resource to generate a localized exception
        formatArguments - An array of arguments to build the localized message
        defaultText - The message that is shown if the localized message cannot be generated
      • PluginException

        public PluginException(java.lang.String resourceBundleName,
                               java.lang.String messageKey,
                               java.lang.Object[] formatArguments,
                               java.lang.String defaultText,
                               java.lang.Throwable exception)

        This method constructor with a localized message and a chained exception.

        Parameters:
        resourceBundleName - The name of the resource bundle to be used to generate a localized exception message
        messageKey - The key to identify the resource to generate a localized exception
        formatArguments - An array of arguments to build the localized message
        defaultText - The message that is shown if the localized message cannot be generated
        exception - The exception to be chained
      • PluginException

        public PluginException(java.lang.Throwable exception)

        This method is the constructor with a chained exception.

        Parameters:
        exception - The exception to be chained
    • Method Detail

      • setCredit

        public void setCredit(Credit theCredit)
        This method sets the Credit container.
        Parameters:
        theCredit - Credit container to be set
      • getCredit

        public Credit getCredit()

        This method gets the Credit container associated with the exception context.

        The Credit container might not be present.

        Returns:
        The Credit container if any; null if no Credit container is associated with the exception
      • setPayment

        public void setPayment(Payment thePayment)
        This method sets the Payment container associated with the exception context.
        Parameters:
        thePayment - The Payment container to be set
      • getPayment

        public Payment getPayment()

        This method gets the Payment container associated with the exception context.

        The Payment container might not be present.

        Returns:
        The Payment container if any; null if no Payment container is associated with the exception
      • setPaymentInstruction

        public void setPaymentInstruction(PaymentInstruction thePaymentInstruction)
        This method sets the PaymentInstruction container associated with the exception context.
        Parameters:
        thePaymentInstruction - The PaymentInstruction container to set
      • getPaymentInstruction

        public PaymentInstruction getPaymentInstruction()
        This method gets the PaymentInstruction container associated with the exception.

        The PaymentInstruction container might not be present.

        Returns:
        The PaymentInstruction container if any; null if no PaymentInstruction container is associated to the exception
      • setFinancialTransaction

        public void setFinancialTransaction(FinancialTransaction thePaymentTransaction)
        This method sets the PaymentTransaction container associated with the exception context.
        Parameters:
        thePaymentTransaction - The PaymentTransaction container to be set
      • getFinancialTransaction

        public FinancialTransaction getFinancialTransaction()
        This method gets the FinancialTransaction container associated with the exception.

        The FinancialTransaction container might not be present.

        Returns:
        The FinancialTransaction container if any; null if no FinancialTransaction container is associated to the exception