fix(openspec): 新增 fix-booking-exception-handling change 規劃 #74
Reference in New Issue
Block a user
Delete Branch "fix/booking-exception-handling"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
摘要
M7(
docs/analysis/2026-10-14-project-review-todo.md)的 change 規劃,只含 OpenSpec 文件,不含程式碼。MemberBookingController::store、ProviderBookingController::confirm的catch (\RuntimeException)會接住QueryException,把 SQL 以 422 回給使用者,且不送 SentryBookingRuleViolationException,Controller 只 catch 業務例外(422 與訊息不變);其他例外交給 Laravel 例外處理器(500{"message":"Server Error"}+ Sentry)booking-lifecycle新增「預約交易錯誤分類」requirement,5 個 Scenario 皆對應測試任務 2.1–2.5審查
Exceptions::fake()、變異驗證歸類、Risks 等 warnings 已修正)openspec validate fix-booking-exception-handling --strict通過🤖 Generated with Claude Code