org.csapi.jr.se.am
Class VoucherError

java.lang.Object
  extended byorg.csapi.jr.se.am.VoucherError
All Implemented Interfaces:
java.io.Serializable

public final class VoucherError
extends java.lang.Object
implements java.io.Serializable

Defines an error that is reported as a result of a voucher request.

See Also:
Serialized Form

Field Summary
static int _VOUCHER_OK
          No error occurred while processing the request
static int _VOUCHER_SYSTEM_FAILURE
          System failure.
static int _VOUCHER_UNAUTHORIZED_APPLICATION
          Application is not authorized
static int _VOUCHER_UNDEFINED
          General error, unspecified
static int _VOUCHER_UNKNOWN_SUBSCRIBER
          Subscriber is unknown
static VoucherError VOUCHER_OK
          No error occurred while processing the request
static VoucherError VOUCHER_SYSTEM_FAILURE
          System failure.
static VoucherError VOUCHER_UNAUTHORIZED_APPLICATION
          Application is not authorized
static VoucherError VOUCHER_UNDEFINED
          General error, unspecified
static VoucherError VOUCHER_UNKNOWN_SUBSCRIBER
          Subscriber is unknown
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is 'equal to' this one.
static VoucherError getObject(int value)
          Accepts values in the range of 0 to 4
 int getValue()
          Number representing enum type
 java.lang.String getValueText()
          getValueText method, overrides the getValueText() method in class java.lang.Object
 int hashCode()
          Returns a hashcode value for the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_VOUCHER_OK

public static final int _VOUCHER_OK
No error occurred while processing the request

See Also:
Constant Field Values

VOUCHER_OK

public static final VoucherError VOUCHER_OK
No error occurred while processing the request


_VOUCHER_UNDEFINED

public static final int _VOUCHER_UNDEFINED
General error, unspecified

See Also:
Constant Field Values

VOUCHER_UNDEFINED

public static final VoucherError VOUCHER_UNDEFINED
General error, unspecified


_VOUCHER_UNKNOWN_SUBSCRIBER

public static final int _VOUCHER_UNKNOWN_SUBSCRIBER
Subscriber is unknown

See Also:
Constant Field Values

VOUCHER_UNKNOWN_SUBSCRIBER

public static final VoucherError VOUCHER_UNKNOWN_SUBSCRIBER
Subscriber is unknown


_VOUCHER_UNAUTHORIZED_APPLICATION

public static final int _VOUCHER_UNAUTHORIZED_APPLICATION
Application is not authorized

See Also:
Constant Field Values

VOUCHER_UNAUTHORIZED_APPLICATION

public static final VoucherError VOUCHER_UNAUTHORIZED_APPLICATION
Application is not authorized


_VOUCHER_SYSTEM_FAILURE

public static final int _VOUCHER_SYSTEM_FAILURE
System failure. The request could not be handled

See Also:
Constant Field Values

VOUCHER_SYSTEM_FAILURE

public static final VoucherError VOUCHER_SYSTEM_FAILURE
System failure. The request could not be handled

Method Detail

getValue

public int getValue()
Number representing enum type

Returns:
int number representing type of object, this is defined within the class

getValueText

public java.lang.String getValueText()
getValueText method, overrides the getValueText() method in class java.lang.Object

Returns:
String The stringified version of the VoucherError object

getObject

public static VoucherError getObject(int value)
                              throws InvalidEnumValueException
Accepts values in the range of 0 to 4

Parameters:
value - number representing type of object, this is defined within the class
Throws:
InvalidEnumValueException - thrown if invalid value is passed into method

equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is 'equal to' this one.


hashCode

public int hashCode()
Returns a hashcode value for the object.