Package org.apache.calcite.avatica
Enum AvaticaSeverity
- java.lang.Object
-
- java.lang.Enum<AvaticaSeverity>
-
- org.apache.calcite.avatica.AvaticaSeverity
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AvaticaSeverity>
public enum AvaticaSeverity extends java.lang.Enum<AvaticaSeverity>
An enumeration that denotes the severity of a given unexpected state.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERRORThe result of an action resulted in an error which the current operation cannot recover from.FATALThe system has been left in an unrecoverable state as a result of an operation.UNKNOWNThe severity of the outcome of some unexpected state is unknown.WARNINGThe operation completed successfully but a message was generated to warn the client about some unexpected state or action.
-
Field Summary
Fields Modifier and Type Field Description private intvalue
-
Constructor Summary
Constructors Modifier Constructor Description privateAvaticaSeverity(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AvaticaSeverityfromProto(Common.Severity proto)intgetValue()Common.SeveritytoProto()static AvaticaSeverityvalueOf(java.lang.String name)Returns 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 Detail
-
UNKNOWN
public static final AvaticaSeverity UNKNOWN
The severity of the outcome of some unexpected state is unknown.
-
FATAL
public static final AvaticaSeverity FATAL
The system has been left in an unrecoverable state as a result of an operation.
-
ERROR
public static final AvaticaSeverity 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
public static final AvaticaSeverity WARNING
The operation completed successfully but a message was generated to warn the client about some unexpected state or action.
-
-
Method Detail
-
values
public static AvaticaSeverity[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AvaticaSeverity c : AvaticaSeverity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AvaticaSeverity valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getValue
public int getValue()
-
toProto
public Common.Severity toProto()
-
fromProto
public static AvaticaSeverity fromProto(Common.Severity proto)
-
-