Class ReturnCode
java.lang.Object
org.kopi.ebics.exception.ReturnCode
- All Implemented Interfaces:
Serializable
Representation of EBICS return codes.
The return codes are described in chapter 13
of EBICS specification.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCodestatic final ReturnCode -
Constructor Summary
ConstructorsConstructorDescriptionReturnCode(String code, String symbolicName, String text) Constructs a newReturnCodewith a given standard code, symbolic name and text -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetCode()Returns the code.Returns a slightly more human readable version of this return code.getText()Returns a display text for the default locale.inthashCode()booleanisOk()Tells if the return code is an OK one.voidThrows an equivalentEbicsExceptionstatic ReturnCodetoReturnCode(String code, String text) Returns the equivalentReturnCodeof a given codetoString()
-
Field Details
-
EBICS_OK
-
EBICS_DOWNLOAD_POSTPROCESS_DONE
-
EBICS_DOWNLOAD_POSTPROCESS_SKIPPED
-
EBICS_TX_SEGMENT_NUMBER_UNDERRUN
-
EBICS_AUTHENTICATION_FAILED
-
EBICS_INVALID_REQUEST
-
EBICS_INTERNAL_ERROR
-
EBICS_TX_RECOVERY_SYNC
-
EBICS_INVALID_USER_OR_USER_STATE
-
EBICS_USER_UNKNOWN
-
EBICS_INVALID_USER_STATE
-
EBICS_INVALID_ORDER_TYPE
-
EBICS_UNSUPPORTED_ORDER_TYPE
-
EBICS_USER_AUTHENTICATION_REQUIRED
-
EBICS_BANK_PUBKEY_UPDATE_REQUIRED
-
EBICS_SEGMENT_SIZE_EXCEEDED
-
EBICS_TX_UNKNOWN_TXID
-
EBICS_TX_ABORT
-
EBICS_TX_MESSAGE_REPLAY
-
EBICS_TX_SEGMENT_NUMBER_EXCEEDED
-
EBICS_X509_CERTIFICATE_NOT_VALID_YET
-
EBICS_MAX_TRANSACTIONS_EXCEEDED
-
EBICS_SIGNATURE_VERIFICATION_FAILED
-
EBICS_INVALID_ORDER_DATA_FORMAT
-
EBICS_NO_DOWNLOAD_DATA_AVAILABLE
-
EBICS_ORDERID_ALREADY_EXISTS
-
EBICS_AUTHORISATION_ORDER_TYPE_FAILED
-
-
Constructor Details
-
ReturnCode
-
-
Method Details
-
throwException
Throws an equivalentEbicsException- Throws:
EbicsException
-
isOk
public boolean isOk()Tells if the return code is an OK one.- Returns:
- True if the return code is OK one.
-
getSymbolicName
Returns a slightly more human readable version of this return code.- Returns:
- a slightly more human readable version of this return code.
-
getText
Returns a display text for the default locale.- Returns:
- a text that can be displayed.
-
getCode
public int getCode()Returns the code.- Returns:
- the code.
-
toReturnCode
Returns the equivalentReturnCodeof a given code- Parameters:
code- the given codetext- the given code text- Returns:
- the equivalent
ReturnCode
-
equals
-
hashCode
-
toString
-