/**
* Autogenerated by Thrift Compiler (0.9.2)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.xiaomi.infra.galaxy.lcs.thrift;
import java.util.Map;
import java.util.HashMap;
import libthrift091.TEnum;
public enum ErrorCode implements libthrift091.TEnum {
SUCCESS(0),
UNEXCEPTED_ERROR(1),
BUFFER_FULL(2),
DESERIALIZE_FAILED(3),
FILE_NOT_EXIST(4),
IO_ERROR(5),
TALOS_OPERATION_FAILED(6),
INVALID_TOPIC(7),
AGENT_NOT_READY(8),
MODULED_STOPED(9);
private final int value;
private ErrorCode(int value) {
this.value = value;
}
/**
* Get the integer value of this enum value, as defined in the Thrift IDL.
*/
public int getValue() {
return value;
}
/**
* Find a the enum type by its integer value, as defined in the Thrift IDL.
* @return null if the value is not found.
*/
public static ErrorCode findByValue(int value) {
switch (value) {
case 0:
return SUCCESS;
case 1:
return UNEXCEPTED_ERROR;
case 2:
return BUFFER_FULL;
case 3:
return DESERIALIZE_FAILED;
case 4:
return FILE_NOT_EXIST;
case 5:
return IO_ERROR;
case 6:
return TALOS_OPERATION_FAILED;
case 7:
return INVALID_TOPIC;
case 8:
return AGENT_NOT_READY;
case 9:
return MODULED_STOPED;
default:
return null;
}
}
}