Enum Class Tm1ErrorKind
- All Implemented Interfaces:
Serializable, Comparable<Tm1ErrorKind>, Constable
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.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn object with that name already exists.The operation was cancelled, e.g.The request conflicts with the object's state (409, otherwise unclassified).The credentials were refused, so logging in again won't help.A cell write was refused: text in a numeric cell, a consolidated or rule-calculated cell, or no rights.Not allowed (403).TM1 refused to impersonate the user (for example, an administrator).The object can't be changed or deleted because something uses it.An element unique name in the request is invalid (TM1 code 248).The object is locked.The user has no read rights to the object (TM1 code 65), e.g.The object doesn't exist.TM1 doesn't implement this request (501).Anything else.The ETag inIf-Matchis stale (412), or one is required (428).Not logged in, or the session expired (401).The user to impersonate doesn't exist. -
Method Summary
Modifier and TypeMethodDescriptionstatic Tm1ErrorKindReturns the enum constant of this class with the specified name.static Tm1ErrorKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_FOUND
The object doesn't exist. TM1 sometimes reports this with 400 rather than 404. -
ALREADY_EXISTS
An object with that name already exists. -
LOCKED
The object is locked. -
IN_USE
The object can't be changed or deleted because something uses it. -
CONFLICT
The request conflicts with the object's state (409, otherwise unclassified). -
PRECONDITION_FAILED
The ETag inIf-Matchis stale (412), or one is required (428). -
UNAUTHENTICATED
Not logged in, or the session expired (401). -
CREDENTIAL_REJECTED
The credentials were refused, so logging in again won't help. -
FORBIDDEN
Not allowed (403). -
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
TM1 refused to impersonate the user (for example, an administrator). -
UNKNOWN_USER
The user to impersonate doesn't exist. -
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
An element unique name in the request is invalid (TM1 code 248). -
CANCELLED
The operation was cancelled, e.g. a TI process cancelled from TM1. -
NOT_IMPLEMENTED
TM1 doesn't implement this request (501). -
OTHER
Anything else.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-