- Introduced new documentation for Agent Skills, detailing best practices, code patterns, common pitfalls, and quick references across various categories such as Architecture, Data Access, Security, Error Handling, Testing, Infrastructure, Communication, and Documentation. - The documentation is structured to facilitate easy navigation and understanding, supporting developers in implementing consistent patterns on the GoodGo Platform. - Both English and Vietnamese versions are provided to ensure accessibility for a wider audience.
1.4 KiB
1.4 KiB
Global error handling, domain exceptions, và Result pattern
Skill:
error-handling-patterns
Compatibility: .NET 10+, Polly, FluentValidation, Microsoft.Extensions.Diagnostics.HealthChecks
Tổng Quan
Global error handling, domain exceptions, và Result pattern. Use for exception middleware, validation errors, Polly resiliency, và health checks.
Khi Nào Sử Dụng
Use this skill when:
- Implementing global exception handling / Triển khai xử lý exception toàn cục
- Creating domain exceptions / Tạo domain exceptions
- Setting up retry policies with Polly / Cài đặt retry policies với Polly
- Implementing Circuit Breaker pattern / Triển khai Circuit Breaker
- Configuring health checks / Cấu hình health checks
- Handling validation errors / Xử lý validation errors
Tham Chiếu Nhanh
Để biết chi tiết về patterns, code examples, và best practices, xem tài liệu skill đầy đủ.
Skills Liên Quan
Xem Danh Mục Skills để tìm skills liên quan.
Tài Nguyên Bổ Sung
- Tài Liệu Skill Đầy Đủ:
.agent/skills/error-handling-patterns/SKILL.md - Ví Dụ Code:
.agent/skills/error-handling-patterns/references/REFERENCE.md
English Version: English Documentation