public enum ErrorCode extends Enum<ErrorCode>
| Enum Constant and Description |
|---|
AUTH_FAILED
Authentication failed
|
CLIENT_CLOSED
Client has been closed
|
EXPORT_FAILED
Export/upload failed
|
INTERNAL_ERROR
Internal error
|
INVALID_PARAM
Invalid parameter provided
|
NETWORK_ERROR
Network error occurred
|
PROMPT_NOT_FOUND
Prompt not found
|
TEMPLATE_RENDER_ERROR
Template rendering error
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
String |
getMessage() |
static ErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCode INVALID_PARAM
public static final ErrorCode AUTH_FAILED
public static final ErrorCode NETWORK_ERROR
public static final ErrorCode EXPORT_FAILED
public static final ErrorCode TEMPLATE_RENDER_ERROR
public static final ErrorCode CLIENT_CLOSED
public static final ErrorCode PROMPT_NOT_FOUND
public static final ErrorCode INTERNAL_ERROR
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode 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 int getCode()
public String getMessage()
Copyright © 2026. All rights reserved.