exceptions-spring
OfficialRobust Spring Boot error handling.
Software Engineering#java#exception handling#spring boot#api errors#rest controller advice#problem detail
AuthorJNZader-Vault
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a comprehensive solution for managing exceptions in Spring Boot applications, ensuring consistent and informative error responses to clients.
Core Features & Use Cases
- Centralized Exception Handling: Uses
@ControllerAdviceandGlobalExceptionHandlerfor a unified approach. - Standardized Error Responses: Implements
ProblemDetailfor API error reporting, including custom error codes and context. - Specific Exception Types: Defines custom exceptions for validation, resource not found, business rules, and conflicts.
- Use Case: When a user attempts to access a non-existent resource, the API will return a standardized
ProblemDetailresponse with a 404 status, a specific error code (e.g., "RES-404"), and a clear message, rather than a generic server error.
Quick Start
Implement the provided GlobalExceptionHandler and ApiException hierarchy in your Spring Boot project to standardize error responses.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: exceptions-spring Download link: https://github.com/JNZader-Vault/project-starter-framework/archive/main.zip#exceptions-spring Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.