Skip to content

Variable: ToolErrorCodes

Makaio Framework


Makaio Framework / tools-core / ToolErrorCodes

const ToolErrorCodes: object

Defined in: ../../../tools/core/src/errors.ts:7

Standard error codes for tool execution failures. Use these codes for consistent error handling across tools.

readonly ABORTED: "ABORTED" = 'ABORTED'

Tool was aborted via signal

readonly EXECUTION_ERROR: "EXECUTION_ERROR" = 'EXECUTION_ERROR'

Generic execution error

readonly INTERNAL_ERROR: "INTERNAL_ERROR" = 'INTERNAL_ERROR'

Internal tool error

readonly INVALID_OUTPUT: "INVALID_OUTPUT" = 'INVALID_OUTPUT'

Tool returned invalid output

readonly PERMISSION_DENIED: "PERMISSION_DENIED" = 'PERMISSION_DENIED'

Tool execution not permitted

readonly RESOURCE_EXHAUSTED: "RESOURCE_EXHAUSTED" = 'RESOURCE_EXHAUSTED'

Resource limit exceeded (e.g., max concurrent shells)

readonly RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND" = 'RESOURCE_NOT_FOUND'

Required resource not found

readonly TIMEOUT: "TIMEOUT" = 'TIMEOUT'

Tool execution timed out

readonly TOOL_NOT_FOUND: "TOOL_NOT_FOUND" = 'TOOL_NOT_FOUND'

Tool not found in registry

readonly VALIDATION_FAILED: "VALIDATION_FAILED" = 'VALIDATION_FAILED'

Input validation failed against schema