public final class AcpErrorCodes
extends java.lang.Object
The error codes follow the JSON-RPC 2.0 specification:
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
AUTHENTICATION_REQUIRED
Authentication required: The operation requires authentication.
|
static int |
CAPABILITY_NOT_SUPPORTED
Capability not supported: The peer does not support the requested capability.
|
static int |
CONCURRENT_PROMPT
Concurrent prompt: There is already an active prompt execution on this session.
|
static int |
INTERNAL_ERROR
Internal error: Internal JSON-RPC error.
|
static int |
INVALID_PARAMS
Invalid params: Invalid method parameter(s).
|
static int |
INVALID_REQUEST
Invalid Request: The JSON sent is not a valid Request object.
|
static int |
METHOD_NOT_FOUND
Method not found: The method does not exist or is not available.
|
static int |
NOT_INITIALIZED
Not initialized: A method was called before the connection was initialized.
|
static int |
PARSE_ERROR
Parse error: Invalid JSON was received by the server.
|
static int |
PERMISSION_DENIED
Permission denied: The user denied permission for the requested operation.
|
static int |
SESSION_NOT_FOUND
Session not found: The specified session ID does not exist.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static java.lang.String |
getDescription(int code)
Returns a human-readable description for the given error code.
|
public static final int PARSE_ERROR
public static final int INVALID_REQUEST
public static final int METHOD_NOT_FOUND
public static final int INVALID_PARAMS
public static final int INTERNAL_ERROR
public static final int CONCURRENT_PROMPT
public static final int CAPABILITY_NOT_SUPPORTED
public static final int SESSION_NOT_FOUND
public static final int NOT_INITIALIZED
public static final int AUTHENTICATION_REQUIRED
public static final int PERMISSION_DENIED