-
Notifications
You must be signed in to change notification settings - Fork 137
Description
Summary
Replace generic Java exceptions (RuntimeException, IllegalStateException, IllegalArgumentException) with domain-specific ConfigurationException and ExecutionException across MCP tool classes and platform-component modules. Introduces dedicated ErrorType enums for each tool to enable structured error identification.
Changes
-
MCP Tool Classes: Replace
RuntimeExceptionwithExecutionExceptionin:ProjectToolsImpl(list, get, search, create, update, delete, publish projects)ProjectWorkflowToolsImpl(get, list, search, validate, create, delete, update workflows)ScriptTools(update script)ComponentTools(get component, get/generate trigger, list actions/components/triggers)FirecrawlToolsTaskDispatcherToolsTaskTools
-
McpToolFacade: Replace
IllegalStateExceptionwithConfigurationException -
platform-component: Replace
IllegalArgumentExceptionwithConfigurationExceptionin:PropertyFactoryContextImplInMemoryDataStorageFileEntryDeserializerComponentDefinitionRegistryJdbcComponentHandlerImplTriggerDefinitionServiceImplSqlUtils
-
New ErrorType enums (7 files):
ComponentToolErrorTypeTaskDispatcherToolErrorTypeTaskToolErrorTypeFirecrawlToolErrorTypeProjectToolErrorTypeProjectWorkflowToolErrorTypeScriptToolErrorTypeMcpServerErrorTypeComponentErrorType
Motivation
Generic exceptions make it difficult to:
- Programmatically identify and handle specific error conditions
- Provide meaningful error messages to API consumers
- Trace errors back to their origin in monitoring/logging systems
Domain-specific exceptions with ErrorType enums provide structured error classification, improving debuggability and enabling more granular error handling.
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
Type
Projects
Status