# com.beasys.commerce.ebusiness.payment
InvalidCreditCardException Class

public class InvalidCreditCardException
extends `PaymentException`

This is exception is thrown when the credit card is not valid and cannot be retried. Example: invalid credit card number

Hierarchy
  `Object`
  `Throwable`
  `Exception`
  `ApplicationException`
  `PaymentException`
  `InvalidCreditCardException`

All Implemented Interfaces
  `MessageCatalogException`, `Serializable`

## Field Summary

Fields from com.beasys.commerce.foundation.exception`.`ApplicationException``
``embeddedException`, `logMessages`, `userMessages``

## Constructor Summary

InvalidCreditCardException(`String` namespace, `String` messageKey, `TransactionResponse` response) Create a InvalidCreditCardException with the response object.
InvalidCreditCardException(`String` namespace, `String` messageKey) Create a InvalidCreditCardException with namespace and messageKey.

## Method Summary

Methods from `com.beasys.commerce.ebusiness.payment.`PaymentException``
``getResponse``

Methods from `com.beasys.commerce.foundation.exception.`ApplicationException``
``addLogMessage`, `addLogMessage`, `addLogMessage`, `addMessage`, `addMessage`, `addMessage`, `addUserMessage`, `addUserMessage`, `addUserMessage`, `getEmbeddedException`, `getLocalizedMessage`, `getLogMessage`, `getLogMessages`, `getMessage`, `getUserMessage`, `getUserMessages`, `toString``

Methods from `java.lang.`Throwable``
`fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `com.beasys.commerce.foundation.exception.`MessageCatalogException``
``addLogMessage`, `addLogMessage`, `addLogMessage`, `addMessage`, `addMessage`, `addMessage`, `addUserMessage`, `addUserMessage`, `addUserMessage`, `getEmbeddedException`, `getLogMessage`, `getLogMessages`, `getUserMessage`, `getUserMessages``

## Constructor Detail

### InvalidCreditCardException

    public InvalidCreditCardException(String namespace,
                                      String messageKey,
                                      TransactionResponse response)

  Create a InvalidCreditCardException with the response object.

### InvalidCreditCardException

    public InvalidCreditCardException(String namespace,
                                      String messageKey)

  Create a InvalidCreditCardException with namespace and messageKey.