一键导入
semantic-error-handling
Use this skill when defining error responses, exception handling, or failure scenarios.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use this skill when defining error responses, exception handling, or failure scenarios.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use this skill to enforce strict separation between core system architecture and authentication/authorization concerns.
Use this skill when structuring the project, defining layers, or enforcing architectural boundaries.
Use this skill when implementing or reviewing core Java logic, domain models, performance-sensitive code, or JVM-related concerns in a Spring Boot microservice.
Use this skill when building Docker images for Spring Boot microservices.
Use this skill when building or reviewing the domain model for the hotel/hostel management system. This includes defining entities, attributes, relationships, and enumerations based on hospitality domain expertise.
Use this skill when making product, domain, data model, workflow, or business-rule decisions for hotel and hostel management software.
| name | semantic-error-handling |
| description | Use this skill when defining error responses, exception handling, or failure scenarios. |
When handling errors:
Use @ControllerAdvice
Error response must include:
Rules:
Errors are part of the API contract. Always map exceptions to meaningful HTTP status codes.