Enum Class ElasticsearchErrorCode

java.lang.Object
java.lang.Enum<ElasticsearchErrorCode>
io.trino.plugin.elasticsearch.ElasticsearchErrorCode
All Implemented Interfaces:
ErrorCodeSupplier, Serializable, Comparable<ElasticsearchErrorCode>, Constable

public enum ElasticsearchErrorCode extends Enum<ElasticsearchErrorCode> implements ErrorCodeSupplier
  • Enum Constant Details

    • ELASTICSEARCH_CONNECTION_ERROR

      public static final ElasticsearchErrorCode ELASTICSEARCH_CONNECTION_ERROR
    • ELASTICSEARCH_INVALID_RESPONSE

      public static final ElasticsearchErrorCode ELASTICSEARCH_INVALID_RESPONSE
    • ELASTICSEARCH_SSL_INITIALIZATION_FAILURE

      public static final ElasticsearchErrorCode ELASTICSEARCH_SSL_INITIALIZATION_FAILURE
    • ELASTICSEARCH_QUERY_FAILURE

      public static final ElasticsearchErrorCode ELASTICSEARCH_QUERY_FAILURE
    • ELASTICSEARCH_INVALID_METADATA

      public static final ElasticsearchErrorCode ELASTICSEARCH_INVALID_METADATA
  • Method Details

    • values

      public static ElasticsearchErrorCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ElasticsearchErrorCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • toErrorCode

      public ErrorCode toErrorCode()
      Specified by:
      toErrorCode in interface ErrorCodeSupplier