public enum ErrorCode extends Enum<ErrorCode>
Enum Constant and Description |
---|
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)
|
FileNotAllowed
Code stands for File not allowed
|
FileNotFound
Code stands for File not found error
|
FinalOp
Code stands for final action (like moving file) is in error
|
IncorrectCommand
Code stands for Incorrect command
|
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
|
SizeNotAllowed
Code stands for Size not allowed
|
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
|
Modifier and Type | Field and Description |
---|---|
char |
code
Code could be used to switch case operations
|
Modifier and Type | Method and Description |
---|---|
String |
getCode() |
static ErrorCode |
getFromCode(String code)
Code is either the 1 char code or the exact name in Enum
|
String |
getJsonRepr() |
String |
getMesg() |
static boolean |
isErrorCode(ErrorCode code) |
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.
|
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
public static final ErrorCode IncorrectCommand
public static final ErrorCode FileNotAllowed
public static final ErrorCode SizeNotAllowed
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 nameNullPointerException
- if the argument is nullpublic String getJsonRepr()
public String getCode()
public String getMesg()
public static ErrorCode getFromCode(String code)
code
- public static boolean isErrorCode(ErrorCode code)
Copyright © 2009–2020 Waarp. All rights reserved.