Tool Error Status Enum (core/ToolErrorStatus.java)

astron-agent · console/backend/toolkit/src/main/java/com/iflytek/astron/console/toolkit/common/constant/core/ToolErrorStatus.java · java · Apache-2.0
infra, lang:java, tag:enum, tag:error-codes, tag:toolkit, tag:backend

Defines standardized error codes and messages for the console toolkit, enabling consistent error handling across backend components.

// Source: https://github.com/iflytek/astron-agent | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package com.iflytek.astron.console.toolkit.common.constant.core;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ToolErrorStatus {

    AppInitErr(30001, "Initialization failed"),
    CommonErr(30100, "General error"),
    JsonProtocolParserErr(30200, "Protocol parsing failed"),
    JsonSchemaValidateErr(30201, "Protocol validation failed"),
    OpenapiSchemaValidateErr(30300, "Protocol parsing failed"),
    OpenapiSchemaBodyTypeNotSupportErr(30301, "Body type not supported"),
    OpenapiSchemaServerNotExistErr(30302, "Server does not

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key