fix(booking): 交易內只攔截業務例外,資料庫錯誤改交由例外處理器 #75

Merged
a620906209 merged 2 commits from fix/booking-exception-handling-impl into master 2026-10-17 17:38:44 +00:00

2 Commits

Author SHA1 Message Date
a620906209 8042f0bafb style(booking): 以 pint 格式化預約 Controller
Run Tests / test (pull_request) Successful in 34s
純格式化,不含邏輯變更。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 01:35:38 +08:00
a620906209 ddbf956144 fix(booking): 交易內只攔截業務例外,資料庫錯誤改交由例外處理器
新增 BookingRuleViolationException,MemberBookingController::store 與
ProviderBookingController::confirm 只 catch 此型別並回 422(訊息不變)。
QueryException 等其他例外不再被當成 422 回傳 SQL,改由 Laravel 回 500
並回報 Sentry。對應 OpenSpec change fix-booking-exception-handling(M7)。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 01:35:38 +08:00