public enum ContentErrorCode extends Enum<ContentErrorCode>
| Enum Constant and Description |
|---|
ERROR_BACKEND
error with repository
|
ERROR_TECH
internal error
|
INFO_OK
results
|
WARN_APIKEY
bad apiKey
|
WARN_BAD_TOKEN
bad token
|
WARN_MISSING_APIKEY
missing apiKey
|
WARN_NO_DATA
no results
|
WARN_WRONG_PARAMETER
bad parameters
|
WARN_WRONG_USER
wrong user
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCode() |
org.springframework.boot.logging.LogLevel |
getLevel() |
String |
getMessage() |
org.springframework.http.HttpStatus |
getStatus() |
static ContentErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContentErrorCode INFO_OK
public static final ContentErrorCode WARN_NO_DATA
public static final ContentErrorCode WARN_WRONG_PARAMETER
public static final ContentErrorCode WARN_APIKEY
public static final ContentErrorCode WARN_MISSING_APIKEY
public static final ContentErrorCode WARN_BAD_TOKEN
public static final ContentErrorCode WARN_WRONG_USER
public static final ContentErrorCode ERROR_BACKEND
public static final ContentErrorCode ERROR_TECH
public static ContentErrorCode[] values()
for (ContentErrorCode c : ContentErrorCode.values()) System.out.println(c);
public static ContentErrorCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic org.springframework.boot.logging.LogLevel getLevel()
public String getMessage()
public String getCode()
public org.springframework.http.HttpStatus getStatus()
Copyright © 2022. All rights reserved.