|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ErrorCode>
tecgraf.ftc_1_3.common.logic.ErrorCode
public enum ErrorCode
Representa os códigos de erros que podem ser gerados por operações (
Operation).
| Enum Constant Summary | |
|---|---|
END_OF_FILE
|
|
FAILURE
Indica que uma operação falhou. |
|
FILE_LOCKED
Indica que não é possível escrever num arquivo porque o arquivo possui um lock associado. |
|
FILE_NOT_FOUND
Indica que um arquivo solicitado não existe. |
|
FILE_NOT_OPEN
Indica que o arquivo não esta aberto. |
|
INVALID_KEY
Indica que uma chave inválida foi utilizada. |
|
INVALID_VERSION
Indica que a versão do protocolo utilizada pelo cliente nao é suportada pelo servidor |
|
MAX_CLIENTS_REACHED
Indica que o numero maximo de clientes no servidor foi atingido. |
|
NO_PERMISSION
Indica falta de permissão para a realização de uma operação. |
|
OK
Indica que uma operação foi realizada com sucesso. |
|
READ_ONLY
Indica que não é possível escrever num arquivo porque este esta aberto somente para leitura. |
|
| Method Summary | |
|---|---|
byte |
getCode()
Obtém o código do código de erro. |
static ErrorCode |
valueOf(byte code)
Obtém um código de erro a partir de seu código. |
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 OK
public static final ErrorCode FAILURE
public static final ErrorCode INVALID_KEY
public static final ErrorCode FILE_NOT_FOUND
public static final ErrorCode NO_PERMISSION
public static final ErrorCode FILE_LOCKED
public static final ErrorCode MAX_CLIENTS_REACHED
public static final ErrorCode FILE_NOT_OPEN
public static final ErrorCode READ_ONLY
public static final ErrorCode INVALID_VERSION
public static final ErrorCode END_OF_FILE
| 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 byte getCode()
public static ErrorCode valueOf(byte code)
code - O código.
null, caso o código não corresponda a
nenhum código de erro.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||