exceptions-spring

Official

Robust Spring Boot error handling.

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 @ControllerAdvice and GlobalExceptionHandler for a unified approach.
  • Standardized Error Responses: Implements ProblemDetail for 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 ProblemDetail response 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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.