Enum Class ErrorCodes

java.lang.Object
java.lang.Enum<ErrorCodes>
org.graalvm.tools.lsp.server.types.ErrorCodes
All Implemented Interfaces:
Serializable, Comparable<ErrorCodes>, Constable

public enum ErrorCodes extends Enum<ErrorCodes>
Predefined error codes.
  • Enum Constant Details

    • ParseError

      public static final ErrorCodes ParseError
    • InvalidRequest

      public static final ErrorCodes InvalidRequest
    • MethodNotFound

      public static final ErrorCodes MethodNotFound
    • InvalidParams

      public static final ErrorCodes InvalidParams
    • InternalError

      public static final ErrorCodes InternalError
    • serverErrorStart

      public static final ErrorCodes serverErrorStart
    • serverErrorEnd

      public static final ErrorCodes serverErrorEnd
    • ServerNotInitialized

      public static final ErrorCodes ServerNotInitialized
    • UnknownErrorCode

      public static final ErrorCodes UnknownErrorCode
    • RequestCancelled

      public static final ErrorCodes RequestCancelled
    • ContentModified

      public static final ErrorCodes ContentModified
    • MessageWriteError

      public static final ErrorCodes MessageWriteError
    • MessageReadError

      public static final ErrorCodes MessageReadError
  • Method Details

    • values

      public static ErrorCodes[] 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 ErrorCodes 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
    • getIntValue

      public int getIntValue()
    • get

      public static ErrorCodes get(Integer intValue)