Variable: ToolErrorCodes
Makaio Framework / tools-core / ToolErrorCodes
Variable: ToolErrorCodes
Section titled “Variable: ToolErrorCodes”
constToolErrorCodes: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.
Type Declaration
Section titled “Type Declaration”ABORTED
Section titled “ABORTED”
readonlyABORTED:"ABORTED"='ABORTED'
Tool was aborted via signal
EXECUTION_ERROR
Section titled “EXECUTION_ERROR”
readonlyEXECUTION_ERROR:"EXECUTION_ERROR"='EXECUTION_ERROR'
Generic execution error
INTERNAL_ERROR
Section titled “INTERNAL_ERROR”
readonlyINTERNAL_ERROR:"INTERNAL_ERROR"='INTERNAL_ERROR'
Internal tool error
INVALID_OUTPUT
Section titled “INVALID_OUTPUT”
readonlyINVALID_OUTPUT:"INVALID_OUTPUT"='INVALID_OUTPUT'
Tool returned invalid output
PERMISSION_DENIED
Section titled “PERMISSION_DENIED”
readonlyPERMISSION_DENIED:"PERMISSION_DENIED"='PERMISSION_DENIED'
Tool execution not permitted
RESOURCE_EXHAUSTED
Section titled “RESOURCE_EXHAUSTED”
readonlyRESOURCE_EXHAUSTED:"RESOURCE_EXHAUSTED"='RESOURCE_EXHAUSTED'
Resource limit exceeded (e.g., max concurrent shells)
RESOURCE_NOT_FOUND
Section titled “RESOURCE_NOT_FOUND”
readonlyRESOURCE_NOT_FOUND:"RESOURCE_NOT_FOUND"='RESOURCE_NOT_FOUND'
Required resource not found
TIMEOUT
Section titled “TIMEOUT”
readonlyTIMEOUT:"TIMEOUT"='TIMEOUT'
Tool execution timed out
TOOL_NOT_FOUND
Section titled “TOOL_NOT_FOUND”
readonlyTOOL_NOT_FOUND:"TOOL_NOT_FOUND"='TOOL_NOT_FOUND'
Tool not found in registry
VALIDATION_FAILED
Section titled “VALIDATION_FAILED”
readonlyVALIDATION_FAILED:"VALIDATION_FAILED"='VALIDATION_FAILED'
Input validation failed against schema