Enum Class ErrorPhase

java.lang.Object
java.lang.Enum<ErrorPhase>
cool.scx.http.error_handler.ErrorPhase
All Implemented Interfaces:
Serializable, Comparable<ErrorPhase>, Constable

public enum ErrorPhase extends Enum<ErrorPhase>
错误阶段
  • Enum Constant Details

    • SYSTEM

      public static final ErrorPhase SYSTEM
      系统阶段, 比如解析 Http 头时发生错误
    • USER

      public static final ErrorPhase USER
      用户阶段, 比如用户代码错误
  • Method Details

    • values

      public static ErrorPhase[] 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 ErrorPhase 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