Allra Backend Error Handling
Standardizes Java and Spring Boot backend error handling, exception hierarchies, and logging for consistent API responses.
This skill provides a comprehensive framework for implementing robust error handling in Spring Boot applications based on the Allra development standards. It defines a structured business exception hierarchy, centralized global exception handling using @RestControllerAdvice, and a standardized ErrorResponse DTO. By enforcing consistent ErrorCode enums and logging strategies, it ensures that backend services produce predictable, frontend-friendly error messages while maintaining high-quality system logs for debugging and monitoring.
主な機能
01Centralized Global Exception Handler using Spring @RestControllerAdvice
02Structured Business Exception hierarchy for domain-driven design
03Standardized ErrorCode mapping to HTTP status codes
04Integrated logging strategy for DEBUG, INFO, WARN, and ERROR levels
05Standardized ErrorResponse DTO with field-level validation support
060 GitHub stars
ユースケース
01Implementing custom domain exceptions in a Spring Boot service layer
02Standardizing logging practices across multiple microservices
03Setting up a unified API error response format for frontend integration