public class ForbiddenChargingProcessException
extends java.lang.Exception
ForbiddenChargeException,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static int |
ACCOUNT_BLOCKED
8: Constant error when the operation fails because the prepaid account is blocked.
|
static int |
ACCOUNT_CLOSED
10: Constant error when the operation fails because the prepaid account is closed.
|
static int |
ACCOUNT_LOCKED
9: Constant error when the operation fails because the prepaid account is locked.
|
static int |
CALCULATE_TAX_ERROR
15: Constant error when tax calculation fails; Originated from an
InvalidTaxException. |
static int |
CANNOT_CHARGE_ACCOUNT
7: Constant error when the operation fails because the prepaid account or the credit limit balance
has an amount smaller than the amount to be charged.
|
static int |
ILLEGAL_ARGUMENT
3: Constant error when the operation is called with illegal
arguments.
|
static int |
INCOMPATIBLE_CURRENCIES
5: Constant error when the operation fails because the transaction generated by the price plan
has a currency incompatible with the currency of the charged prepaid account or the charged
credit limit balance.
|
static int |
INVALID_ACCOUNT
Deprecated.
Do not remove this reason for compatibility with
ForbiddenChargeException |
static int |
NO_ACCESS_FOUND
Deprecated.
Do not remove this reason for compatibility with
ForbiddenChargeException |
static int |
NO_SUBSCRIPTION_FOUND
Deprecated.
Do not remove this reason for compatibility with ForbiddenChargeException
|
static int |
NOT_AUTHORIZED
Deprecated.
Do not remove this reason for compatibility with ForbiddenChargeException
|
static int |
OUT_OF_VALIDITY_PERIOD
Deprecated.
Do not remove this reason for compatibility with ForbiddenChargeException
|
static int |
OVERRUN_CYCLE_DETECTED
6: Constant error when the operation fails because a cycle has been detected during an overrun
between prepaid account.
|
static int |
PRERATING_NOT_RESOLVED_YET
Deprecated.
Do not remove this reason for compatibility with ForbiddenChargeException
|
static int |
REFILL_REFUSED
17: Constant error when refilling a prepaid account from another one.
|
static int |
SESSION_NOT_STOPPED_YET
Deprecated.
Do not remove this reason for compatibility with ForbiddenChargeException
|
| Constructor and Description |
|---|
ForbiddenChargingProcessException()
Builds an empty forbidden charge exception.
|
ForbiddenChargingProcessException(int error,
java.lang.String message)
Constructs an exception with a message and an error
that explain why the charging is forbidden.
|
ForbiddenChargingProcessException(int error,
java.lang.String message,
java.lang.String reason)
Constructs an exception with a message and an error
and a sub message and a sub error
that explain why the charging is forbidden.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getError()
Returns the error that forbids the charge.
|
java.lang.String |
getMessage()
Returns the detailed message explaining why
charging is forbidden.
|
java.lang.String |
getReason()
Returns the reason that forbids the charge.
|
@Deprecated public static final int NO_ACCESS_FOUND
ForbiddenChargeException@Deprecated public static final int OUT_OF_VALIDITY_PERIOD
@Deprecated public static final int NOT_AUTHORIZED
public static final int ILLEGAL_ARGUMENT
@Deprecated public static final int PRERATING_NOT_RESOLVED_YET
public static final int INCOMPATIBLE_CURRENCIES
public static final int OVERRUN_CYCLE_DETECTED
public static final int CANNOT_CHARGE_ACCOUNT
public static final int ACCOUNT_BLOCKED
public static final int ACCOUNT_LOCKED
public static final int ACCOUNT_CLOSED
@Deprecated public static final int SESSION_NOT_STOPPED_YET
@Deprecated public static final int NO_SUBSCRIPTION_FOUND
public static final int CALCULATE_TAX_ERROR
InvalidTaxException.@Deprecated public static final int INVALID_ACCOUNT
ForbiddenChargeExceptionpublic static final int REFILL_REFUSED
public ForbiddenChargingProcessException()
public ForbiddenChargingProcessException(int error,
java.lang.String message)
error - The error codemessage - The messagepublic ForbiddenChargingProcessException(int error,
java.lang.String message,
java.lang.String reason)
error - The error codemessage - The messagereason - The reasonpublic int getError()
NO_ACCESS_FOUND,
OUT_OF_VALIDITY_PERIOD,
NOT_AUTHORIZED,
ILLEGAL_ARGUMENT,
PRERATING_NOT_RESOLVED_YET,
INCOMPATIBLE_CURRENCIES,
OVERRUN_CYCLE_DETECTED,
CANNOT_CHARGE_ACCOUNT,
ACCOUNT_BLOCKED,
ACCOUNT_LOCKED,
ACCOUNT_CLOSED,
SESSION_NOT_STOPPED_YET,
NO_SUBSCRIPTION_FOUND,
CALCULATE_TAX_ERROR,
INVALID_ACCOUNT,
REFILL_REFUSEDpublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String getReason()
OUT_OF_VALIDITY_PERIOD