Package org.apache.calcite.avatica
Enum AvaticaSeverity
- All Implemented Interfaces:
Serializable,Comparable<AvaticaSeverity>,java.lang.constant.Constable
An enumeration that denotes the severity of a given unexpected state.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe result of an action resulted in an error which the current operation cannot recover from.The system has been left in an unrecoverable state as a result of an operation.The severity of the outcome of some unexpected state is unknown.The operation completed successfully but a message was generated to warn the client about some unexpected state or action. -
Method Summary
Modifier and TypeMethodDescriptionstatic AvaticaSeverityfromProto(org.apache.calcite.avatica.proto.Common.Severity proto) intgetValue()org.apache.calcite.avatica.proto.Common.SeveritytoProto()static AvaticaSeverityReturns the enum constant of this type with the specified name.static AvaticaSeverity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
The severity of the outcome of some unexpected state is unknown. -
FATAL
The system has been left in an unrecoverable state as a result of an operation. -
ERROR
The result of an action resulted in an error which the current operation cannot recover from. Clients can attempt to execute the operation again. -
WARNING
The operation completed successfully but a message was generated to warn the client about some unexpected state or action.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue() -
toProto
public org.apache.calcite.avatica.proto.Common.Severity toProto() -
fromProto
-