Enum Class DruidException.Persona

java.lang.Object
java.lang.Enum<DruidException.Persona>
org.apache.druid.error.DruidException.Persona
All Implemented Interfaces:
Serializable, Comparable<DruidException.Persona>, Constable
Enclosing class:
DruidException

public static enum DruidException.Persona extends Enum<DruidException.Persona>
The persona that the message on a DruidException is targeting
  • Enum Constant Details

    • USER

      public static final DruidException.Persona USER
      Represents the end-user, a persona who is issuing queries to the Druid Query APIs
    • ADMIN

      public static final DruidException.Persona ADMIN
      Represents an administrative user, a persona who is interacting with admin APIs and understands Druid query concepts without necessarily owning the infrastructure and operations of the cluster
    • OPERATOR

      public static final DruidException.Persona OPERATOR
      Represents a persona who actively owns and operates the cluster. This persona is not assumed to understand Druid query concepts, but instead understand cluster operational concepts.
    • DEVELOPER

      public static final DruidException.Persona DEVELOPER
      Represents someone who has all of the context and knowledge to be actively diving into the Druid codebase. This persona exists as a catch-all for anything that is so deep and technically in the weeds that it is not possible to make a message that will make sense to a different persona. Generally speaking, there is a hope that only DEFENSIVE error messages will target this persona.
  • Method Details

    • values

      public static DruidException.Persona[] 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 DruidException.Persona 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