it.dtt.ca.response
Class FailureResponseEvent

java.lang.Object
  extended by it.dtt.ca.response.ResponseEvent
      extended by it.dtt.ca.response.FailureResponseEvent

public class FailureResponseEvent
extends ResponseEvent

Event generated in case of failure of a request/response process.


Field Summary
static int ALREADY_PURCHASED
          Notifies it's impossible to buy the event because the user already have rights to watch it.
static int CARD_BLOCKED
          Notifies the card is blocked.
static int CARD_DAMAGED
          Notifies no card is inserted
static int CARD_ERROR
          Notifies a generic communication error with the smart card.
static int CARD_EXPIRED
          Notifies the card is expired.
static int CARD_MUTED
          Notifies the card is muted.
static int CARD_REMOVED
          Notifies the card was removed during the process.
static int CONNECTION_ERROR
          Notifies the recharge ended with a failure due to a connection problem.
static int CREDIT_LACK
          Notifies the credit is not sufficient to proceed buying the PPV event.
static int GENERIC_ERROR
          Generic error.
static int GENERIC_TRANSACTION_PARAMETER_ERROR
          Notifies the recharge ended with a failure because any of the parameters used in the transaction were wrong.
static int INVALID_SCRATCH
          Notifies the recharge ended with a failure due to a wrong scratch card number.
static int MAXIMUM_CREDIT
          Notifies the recharge ended with a failure because the user reached the maximum allowed credit.
static int NO_OFFERS
          Notifies no events are offered currently.
static int PIN_ERROR
          In case the entered pin code was wrong.
static int PIN_REQUIRED
          In case the application passed a NULL pin while it was needed.
static int PURCHASE_TIME_ENDED
          Notifies the purchase time ended while proceeding with purchase.
static int SMS_DENIAL
          Notifies the SMS denied the recharge to success.
static int UNSUPPORTED_FEATURE
          Notifies this feature is not supported
 
Constructor Summary
FailureResponseEvent(CARequest request, int errorCode)
          Constructs a FailureResponseEvent.
 
Method Summary
 int getErrorCode()
          Retrieves the error code identifying the reason for which the specific request failed.
 
Methods inherited from class it.dtt.ca.response.ResponseEvent
getRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PIN_REQUIRED

public static final int PIN_REQUIRED
In case the application passed a NULL pin while it was needed.

See Also:
Constant Field Values

PIN_ERROR

public static final int PIN_ERROR
In case the entered pin code was wrong.

See Also:
Constant Field Values

CARD_BLOCKED

public static final int CARD_BLOCKED
Notifies the card is blocked.

See Also:
Constant Field Values

CARD_MUTED

public static final int CARD_MUTED
Notifies the card is muted.

See Also:
Constant Field Values

CARD_EXPIRED

public static final int CARD_EXPIRED
Notifies the card is expired.

See Also:
Constant Field Values

CREDIT_LACK

public static final int CREDIT_LACK
Notifies the credit is not sufficient to proceed buying the PPV event.

See Also:
Constant Field Values

CARD_REMOVED

public static final int CARD_REMOVED
Notifies the card was removed during the process.

See Also:
Constant Field Values

CARD_ERROR

public static final int CARD_ERROR
Notifies a generic communication error with the smart card.

See Also:
Constant Field Values

PURCHASE_TIME_ENDED

public static final int PURCHASE_TIME_ENDED
Notifies the purchase time ended while proceeding with purchase.

See Also:
Constant Field Values

ALREADY_PURCHASED

public static final int ALREADY_PURCHASED
Notifies it's impossible to buy the event because the user already have rights to watch it.

See Also:
Constant Field Values

SMS_DENIAL

public static final int SMS_DENIAL
Notifies the SMS denied the recharge to success.

See Also:
Constant Field Values

CONNECTION_ERROR

public static final int CONNECTION_ERROR
Notifies the recharge ended with a failure due to a connection problem.

See Also:
Constant Field Values

INVALID_SCRATCH

public static final int INVALID_SCRATCH
Notifies the recharge ended with a failure due to a wrong scratch card number.

See Also:
Constant Field Values

MAXIMUM_CREDIT

public static final int MAXIMUM_CREDIT
Notifies the recharge ended with a failure because the user reached the maximum allowed credit.

See Also:
Constant Field Values

GENERIC_TRANSACTION_PARAMETER_ERROR

public static final int GENERIC_TRANSACTION_PARAMETER_ERROR
Notifies the recharge ended with a failure because any of the parameters used in the transaction were wrong.

See Also:
Constant Field Values

CARD_DAMAGED

public static final int CARD_DAMAGED
Notifies no card is inserted

See Also:
Constant Field Values

UNSUPPORTED_FEATURE

public static final int UNSUPPORTED_FEATURE
Notifies this feature is not supported

See Also:
Constant Field Values

NO_OFFERS

public static final int NO_OFFERS
Notifies no events are offered currently.

See Also:
Constant Field Values

GENERIC_ERROR

public static final int GENERIC_ERROR
Generic error.

See Also:
Constant Field Values
Constructor Detail

FailureResponseEvent

public FailureResponseEvent(CARequest request,
                            int errorCode)
Constructs a FailureResponseEvent.

Parameters:
request - the CARequest object that generated this response.
errorCode - error code for failure.
Method Detail

getErrorCode

public int getErrorCode()
Retrieves the error code identifying the reason for which the specific request failed.

Returns:
error code.