|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ErrorCode>
openr66.context.ErrorCode
public enum ErrorCode
This enum class keeps all code that will be returned into the result and store (char representation) into the runner.
Enum Constant Summary | |
---|---|
BadAuthent
Code stands for bad authentication (remote or local) |
|
CanceledTransfer
Code stands for a request of canceling transfer |
|
CommandNotFound
Code stands for Command not found error |
|
CompleteOk
Code stands for All action are completed ok |
|
ConnectionImpossible
Code stands for connection is impossible (remote or local reason) |
|
Disconnection
Code stands for Network disconnection |
|
ExternalOp
Code stands for External operation in error (pre, post or error processing) |
|
FileNotFound
Code stands for File not found error |
|
FinalOp
Code stands for final action (like moving file) is in error |
|
InitOk
Code stands for initialization ok (internal connection, authentication) |
|
Internal
Code stands for an internal error |
|
LoopSelfRequestedHost
Code stands for self requested host starting request is invalid |
|
MD5Error
Code stands for Transfer in error due to MD5 |
|
NotKnownHost
Code stands for not known host |
|
PassThroughMode
Code stands for a request in PassThroughMode and required action is incompatible with this mode |
|
PostProcessingOk
Code stands for post processing ok |
|
PreProcessingOk
Code stands for pre processing ok |
|
QueryAlreadyFinished
Code stands for a request that is already remotely finished |
|
QueryRemotelyUnknown
Code stands for request should exist but is not found on remote host |
|
QueryStillRunning
Code stands for request that is still running |
|
RemoteError
Code stands for a remote error is received |
|
RemoteShutdown
Code stands for Remote Shutdown |
|
Running
Code stands for running step |
|
ServerOverloaded
Code stands for connection is impossible now due to limits(remote or local reason) |
|
Shutdown
Code stands for shutdown is in progress |
|
StoppedTransfer
Code stands for a request of stopping transfer |
|
TransferError
Code stands for Transfer is in error |
|
TransferOk
Code stands for transfer OK |
|
Unimplemented
Code stands for unimplemented feature |
|
Unknown
Code stands for unknown type of error |
|
Warning
Warning in execution |
Field Summary | |
---|---|
char |
code
Code could be used to switch case operations |
String |
mesg
Literal for this code |
Method Summary | |
---|---|
String |
getCode()
|
static ErrorCode |
getFromCode(String code)
Code is either the 1 char code or the exact name in Enum |
static ErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ErrorCode InitOk
public static final ErrorCode PreProcessingOk
public static final ErrorCode TransferOk
public static final ErrorCode PostProcessingOk
public static final ErrorCode CompleteOk
public static final ErrorCode ConnectionImpossible
public static final ErrorCode ServerOverloaded
public static final ErrorCode BadAuthent
public static final ErrorCode ExternalOp
public static final ErrorCode TransferError
public static final ErrorCode MD5Error
public static final ErrorCode Disconnection
public static final ErrorCode RemoteShutdown
public static final ErrorCode FinalOp
public static final ErrorCode Unimplemented
public static final ErrorCode Shutdown
public static final ErrorCode RemoteError
public static final ErrorCode Internal
public static final ErrorCode StoppedTransfer
public static final ErrorCode CanceledTransfer
public static final ErrorCode Warning
public static final ErrorCode Unknown
public static final ErrorCode QueryAlreadyFinished
public static final ErrorCode QueryStillRunning
public static final ErrorCode NotKnownHost
public static final ErrorCode LoopSelfRequestedHost
public static final ErrorCode QueryRemotelyUnknown
public static final ErrorCode FileNotFound
public static final ErrorCode CommandNotFound
public static final ErrorCode PassThroughMode
public static final ErrorCode Running
Field Detail |
---|
public String mesg
public char code
Method Detail |
---|
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String getCode()
public static ErrorCode getFromCode(String code)
code
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |