Enum Class Tm1ErrorKind

java.lang.Object
java.lang.Enum<Tm1ErrorKind>
io.skipcheck.tm1.client.error.Tm1ErrorKind
All Implemented Interfaces:
Serializable, Comparable<Tm1ErrorKind>, Constable

public enum Tm1ErrorKind extends Enum<Tm1ErrorKind>
What a TM1 error means, as worked out by Tm1ErrorClassifier. More specific than the HTTP status, since TM1 reports many different failures with the same status and code.
  • Enum Constant Details

    • NOT_FOUND

      public static final Tm1ErrorKind NOT_FOUND
      The object doesn't exist. TM1 sometimes reports this with 400 rather than 404.
    • ALREADY_EXISTS

      public static final Tm1ErrorKind ALREADY_EXISTS
      An object with that name already exists.
    • LOCKED

      public static final Tm1ErrorKind LOCKED
      The object is locked.
    • IN_USE

      public static final Tm1ErrorKind IN_USE
      The object can't be changed or deleted because something uses it.
    • CONFLICT

      public static final Tm1ErrorKind CONFLICT
      The request conflicts with the object's state (409, otherwise unclassified).
    • PRECONDITION_FAILED

      public static final Tm1ErrorKind PRECONDITION_FAILED
      The ETag in If-Match is stale (412), or one is required (428).
    • UNAUTHENTICATED

      public static final Tm1ErrorKind UNAUTHENTICATED
      Not logged in, or the session expired (401).
    • CREDENTIAL_REJECTED

      public static final Tm1ErrorKind CREDENTIAL_REJECTED
      The credentials were refused, so logging in again won't help.
    • FORBIDDEN

      public static final Tm1ErrorKind FORBIDDEN
      Not allowed (403).
    • NO_READ_RIGHTS

      public static final Tm1ErrorKind NO_READ_RIGHTS
      The user has no read rights to the object (TM1 code 65), e.g. a new grant not seen by a held session yet.
    • IMPERSONATION_REFUSED

      public static final Tm1ErrorKind IMPERSONATION_REFUSED
      TM1 refused to impersonate the user (for example, an administrator).
    • UNKNOWN_USER

      public static final Tm1ErrorKind UNKNOWN_USER
      The user to impersonate doesn't exist.
    • DATA_SPREAD_FAILED

      public static final Tm1ErrorKind DATA_SPREAD_FAILED
      A cell write was refused: text in a numeric cell, a consolidated or rule-calculated cell, or no rights.
    • INVALID_UNIQUE_NAME

      public static final Tm1ErrorKind INVALID_UNIQUE_NAME
      An element unique name in the request is invalid (TM1 code 248).
    • CANCELLED

      public static final Tm1ErrorKind CANCELLED
      The operation was cancelled, e.g. a TI process cancelled from TM1.
    • NOT_IMPLEMENTED

      public static final Tm1ErrorKind NOT_IMPLEMENTED
      TM1 doesn't implement this request (501).
    • OTHER

      public static final Tm1ErrorKind OTHER
      Anything else.
  • Method Details

    • values

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