Package esmska.transfer
Enum GatewayExecutor.Problem
- java.lang.Object
-
- java.lang.Enum<GatewayExecutor.Problem>
-
- esmska.transfer.GatewayExecutor.Problem
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<GatewayExecutor.Problem>
- Enclosing class:
- GatewayExecutor
public static enum GatewayExecutor.Problem extends java.lang.Enum<GatewayExecutor.Problem>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUSTOM_MESSAGEGateway script author provided his own message.FIX_IN_PROGRESSA fix for this gateway is being worked on.GATEWAY_MESSAGEGateway provided its own error message.INTERNAL_MESSAGEThis is used for internal Esmska purposes.LIMIT_REACHEDThe user has not waited long enough to send another message or message quota has been reached.LONG_TEXTThe message text was too long.NO_CREDITThe user does not have sufficient credit.NO_REASONThe sending failed but gateway hasn't provided any reason for it.SIGNATURE_NEEDEDThe sender signature was missing.UNKNOWNMessage that unknown error happened, maybe error in the script.UNUSABLEThis gateway is for some reason currently unusable.WRONG_AUTHThe login or password was wrong.WRONG_CODEThe security code was wrong.WRONG_NUMBERThe recepient number was wrong.WRONG_SIGNATUREThe sender signature was wrong.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GatewayExecutor.ProblemvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static GatewayExecutor.Problem[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CUSTOM_MESSAGE
public static final GatewayExecutor.Problem CUSTOM_MESSAGE
Gateway script author provided his own message. Requires the message as a parameter (you can use HTML 3.2).
-
FIX_IN_PROGRESS
public static final GatewayExecutor.Problem FIX_IN_PROGRESS
A fix for this gateway is being worked on. Requires URL for a webpage with more details as a parameter.
-
GATEWAY_MESSAGE
public static final GatewayExecutor.Problem GATEWAY_MESSAGE
Gateway provided its own error message. Requires gateway message as a parameter (you can use HTML 3.2).
-
INTERNAL_MESSAGE
public static final GatewayExecutor.Problem INTERNAL_MESSAGE
This is used for internal Esmska purposes. Don't use it from inside gateway scripts. Requires the message as a parameter (you can use HTML 3.2).
-
LIMIT_REACHED
public static final GatewayExecutor.Problem LIMIT_REACHED
The user has not waited long enough to send another message or message quota has been reached.
-
LONG_TEXT
public static final GatewayExecutor.Problem LONG_TEXT
The message text was too long.
-
NO_CREDIT
public static final GatewayExecutor.Problem NO_CREDIT
The user does not have sufficient credit.
-
NO_REASON
public static final GatewayExecutor.Problem NO_REASON
The sending failed but gateway hasn't provided any reason for it.
-
SIGNATURE_NEEDED
public static final GatewayExecutor.Problem SIGNATURE_NEEDED
The sender signature was missing.
-
UNKNOWN
public static final GatewayExecutor.Problem UNKNOWN
Message that unknown error happened, maybe error in the script. Make sure you set this problem before making any other HTTP requests (logging out, etc), because the last web content will get logged automatically right after you set this problem.
-
UNUSABLE
public static final GatewayExecutor.Problem UNUSABLE
This gateway is for some reason currently unusable. Requires URL for a webpage with more details as a parameter.
-
WRONG_AUTH
public static final GatewayExecutor.Problem WRONG_AUTH
The login or password was wrong.
-
WRONG_CODE
public static final GatewayExecutor.Problem WRONG_CODE
The security code was wrong.
-
WRONG_NUMBER
public static final GatewayExecutor.Problem WRONG_NUMBER
The recepient number was wrong.
-
WRONG_SIGNATURE
public static final GatewayExecutor.Problem WRONG_SIGNATURE
The sender signature was wrong.
-
-
Method Detail
-
values
public static GatewayExecutor.Problem[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GatewayExecutor.Problem c : GatewayExecutor.Problem.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GatewayExecutor.Problem valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-