What problem does it solve? APIs often return inconsistent error shapes, leak stack traces to clients, or swallow failures silently. This Skill enforces a single layered exception strategy so every error response is consistent, safe, and traceable. ## Core Features & Use Cases - Domain Exception Hierarchy: Defines a small exception tree under one base class carrying a stable, machine-readable errorCode instead of bare RuntimeExceptions. - Global Error Mapping: Routes all exceptions through a @ControllerAdvice handler that maps domain exceptions to RFC 7807 ProblemDetail responses. - Boundary Translation: Converts integration exceptions (Feign, JPA, Kafka) into domain exceptions at the boundary so raw client errors never reach controllers. - Use Case: When building a Spring Boot REST API, apply these rules so a missing resource returns a consistent 404 ProblemDetail with an errorCode, while unexpected failures are logged at ERROR and return a safe generic 500. ## Quick Start Apply the exception-handling skill to refactor this Spring Boot service so all errors go through a global ControllerAdvice returning RFC 7807 ProblemDetail responses.