From kotlin-cross-cutting
Apply when creating, refactoring, changing, planning (plan mode) or reviewing any code that handles errors using exceptions. This includes adding, modifying, or fixing custom exception classes, DomainException hierarchies, GlobalExceptionHandler, @ExceptionHandler methods, exception propagation, or error code mappings.
How this skill is triggered — by the user, by Claude, or both
Slash command
/kotlin-cross-cutting:handling-errors-with-exceptionsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Define a consistent exception hierarchy so domain and infrastructure errors propagate cleanly to infrastructure boundaries where they are translated into appropriate responses (HTTP status codes, Kafka DLQ, etc.).
Define a consistent exception hierarchy so domain and infrastructure errors propagate cleanly to infrastructure boundaries where they are translated into appropriate responses (HTTP status codes, Kafka DLQ, etc.).
DO:
DomainException base class for all domain errorsthrows, just for minimal visibilityTeamCreationException)HttpFailureException)"TEAM_NOT_FOUND", "MEMBER_LIMIT_REACHED")DON'T:
RuntimeException, IllegalStateException) for domain errorsGlobalExceptionHandler@ControllerAdvice with @ExceptionHandler methods in GlobalExceptionHandlerPlease use always these examples as reference: examples.md
npx claudepluginhub allousas/claude-code-plugins --plugin kotlin-cross-cuttingStandardizes error handling across frontend and backend layers with exception hierarchy, error categories, response formats, and boundary patterns.
Guides error handling best practices to prevent silent failures, preserve context, and log effectively in try-catch blocks, propagation, and Result patterns.
Strategies for handling errors: exceptions, error types, recovery strategies, and error propagation.