public enum SpanStatus extends java.lang.Enum<SpanStatus>
Enum Constant and Description |
---|
ABORTED
The operation was aborted.
|
ALREADY_EXISTS
The entity attempted to be created already exists
|
CANCELLED
The operation was cancelled, typically by the caller.
|
DATA_LOSS
Unrecoverable data loss or corruption.
|
DEADLINE_EXCEEDED
The deadline expired before the operation could succeed.
|
FAILED_PRECONDITION
The client shouldn't retry until the system state has been explicitly handled.
|
INTERNAL_ERROR
Some invariants expected by the underlying system have been broken.
|
INVALID_ARGUMENT
The client specified an invalid argument.
|
NOT_FOUND
Content was not found or request was denied for an entire class of users.
|
OK
Not an error, returned on success.
|
OUT_OF_RANGE
The operation was attempted past the valid range e.g.
|
PERMISSION_DENIED
The caller doesn't have permission to execute the specified operation.
|
RESOURCE_EXHAUSTED
The resource has been exhausted e.g.
|
UNAUTHENTICATED
The requester doesn't have valid authentication credentials for the operation.
|
UNAVAILABLE
The service is currently available e.g.
|
UNIMPLEMENTED
The operation is not implemented or is not supported/enabled for this operation.
|
UNKNOWN
An unknown error raised by APIs that don't return enough error information.
|
UNKNOWN_ERROR
An unknown error raised by APIs that don't return enough error information.
|
Modifier and Type | Method and Description |
---|---|
static @Nullable SpanStatus |
fromHttpStatusCode(int httpStatusCode)
Creates
SpanStatus from HTTP status code. |
static @NotNull SpanStatus |
fromHttpStatusCode(@Nullable java.lang.Integer httpStatusCode,
@NotNull SpanStatus defaultStatus)
Creates
SpanStatus from HTTP status code. |
static SpanStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SpanStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpanStatus OK
public static final SpanStatus CANCELLED
public static final SpanStatus INTERNAL_ERROR
public static final SpanStatus UNKNOWN
public static final SpanStatus UNKNOWN_ERROR
public static final SpanStatus INVALID_ARGUMENT
public static final SpanStatus DEADLINE_EXCEEDED
public static final SpanStatus NOT_FOUND
public static final SpanStatus ALREADY_EXISTS
public static final SpanStatus PERMISSION_DENIED
public static final SpanStatus RESOURCE_EXHAUSTED
public static final SpanStatus FAILED_PRECONDITION
public static final SpanStatus ABORTED
public static final SpanStatus OUT_OF_RANGE
public static final SpanStatus UNIMPLEMENTED
public static final SpanStatus UNAVAILABLE
public static final SpanStatus DATA_LOSS
public static final SpanStatus UNAUTHENTICATED
public static SpanStatus[] values()
for (SpanStatus c : SpanStatus.values()) System.out.println(c);
public static SpanStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Nullable public static @Nullable SpanStatus fromHttpStatusCode(int httpStatusCode)
SpanStatus
from HTTP status code.httpStatusCode
- the http status code@NotNull public static @NotNull SpanStatus fromHttpStatusCode(@Nullable @Nullable java.lang.Integer httpStatusCode, @NotNull @NotNull SpanStatus defaultStatus)
SpanStatus
from HTTP status code.httpStatusCode
- the http status codedefaultStatus
- the default SpanStatus