public enum TDatabaseExceptionType extends java.lang.Enum<TDatabaseExceptionType> implements org.apache.thrift.TEnum
Enum Constant and Description |
---|
DATABASE |
DEADLOCK |
HEAP_FULL |
LOCK_NOT_GRANTED |
META_CHECKSUM_FAIL |
RUN_RECOVERY |
VERSION_MISMATCH |
Modifier and Type | Method and Description |
---|---|
static TDatabaseExceptionType |
findByValue(int value)
Find a the enum type by its integer value, as defined in the Thrift IDL.
|
int |
getValue()
Get the integer value of this enum value, as defined in the Thrift IDL.
|
static TDatabaseExceptionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TDatabaseExceptionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TDatabaseExceptionType DATABASE
public static final TDatabaseExceptionType DEADLOCK
public static final TDatabaseExceptionType HEAP_FULL
public static final TDatabaseExceptionType LOCK_NOT_GRANTED
public static final TDatabaseExceptionType META_CHECKSUM_FAIL
public static final TDatabaseExceptionType RUN_RECOVERY
public static final TDatabaseExceptionType VERSION_MISMATCH
public static TDatabaseExceptionType[] values()
for (TDatabaseExceptionType c : TDatabaseExceptionType.values()) System.out.println(c);
public static TDatabaseExceptionType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
getValue
in interface org.apache.thrift.TEnum
public static TDatabaseExceptionType findByValue(int value)
Copyright (c) 2016, 2018 Oracle and/or its affiliates. All rights reserved.