|
wiRedPanda
Logic Circuit Simulator
|
Numeric error codes returned in MCP responses, per JSON-RPC 2.0. More...
Go to the source code of this file.
Namespaces | |
| namespace | JsonRpcError |
Variables | |
| constexpr int | JsonRpcError::ConnectionFailed = -32002 |
| Connect/disconnect or port-mismatch failure. | |
| constexpr int | JsonRpcError::ElementNotFound = -32001 |
| Referenced element id does not exist in the scene. | |
| constexpr int | JsonRpcError::FileError = -32003 |
| File save/load/path error. | |
| constexpr int | JsonRpcError::IcError = -32006 |
| IC create / instantiate / embed / extract failure. | |
| constexpr int | JsonRpcError::InternalError = -32603 |
| Internal JSON-RPC error (last-resort). | |
| constexpr int | JsonRpcError::InvalidParams = -32602 |
| Invalid method parameters (missing required, wrong type, etc.). | |
| constexpr int | JsonRpcError::InvalidRequest = -32600 |
| The JSON sent is not a valid Request object. | |
| constexpr int | JsonRpcError::MethodNotFound = -32601 |
| The requested method does not exist or is unavailable. | |
| constexpr int | JsonRpcError::OperationFailed = -32008 |
| Generic Qt API / handler operation failure (catch-all for tryCommand). | |
| constexpr int | JsonRpcError::ParseError = -32700 |
| Invalid JSON received by the server. | |
| constexpr int | JsonRpcError::PortNotFound = -32007 |
| Port lookup by index or label did not match. | |
| constexpr int | JsonRpcError::SceneNotAvailable = -32000 |
| No active circuit scene to operate on. | |
| constexpr int | JsonRpcError::SimulationError = -32004 |
| Simulation control / waveform failure. | |
| constexpr int | JsonRpcError::ValidationError = -32005 |
| Semantic validation failure (e.g. port index out of range, enum value not allowed). | |
Numeric error codes returned in MCP responses, per JSON-RPC 2.0.
The first block reproduces the codes the JSON-RPC 2.0 spec reserves for pre-defined errors (https://www.jsonrpc.org/specification#error_object). The second block defines wiRedPanda application errors inside the spec's reserved -32000..-32099 implementation-defined range.
Definition in file JsonRpcError.h.