Source: FT7 (#308 / PR #311) — F-3。
Severity: medium / Kind: design-trade-off / Decision: fix-in-framework。
現状
`htdocs/index.php:42-46` の `Xion\DomainException` catch は常に `JsonResponder` 経由で JSON envelope を emit する。HTML 側 (`*Action`) で `throw new DomainException('TODO-NOT-FOUND')` するとブラウザに JSON が飛ぶ。
やること
- `DomainException` catch も `RouteContext::isAction()` で分岐する
- HTML 側は envelope の `errorCode` を Smarty 変数として template/error/domain.tpl (or 4xx.tpl) に渡してレンダリングする
- REST 側は現状維持
受け入れ条件
Source: FT7 (#308 / PR #311) — F-3。
Severity: medium / Kind: design-trade-off / Decision: fix-in-framework。
現状
`htdocs/index.php:42-46` の `Xion\DomainException` catch は常に `JsonResponder` 経由で JSON envelope を emit する。HTML 側 (`*Action`) で `throw new DomainException('TODO-NOT-FOUND')` するとブラウザに JSON が飛ぶ。
やること
受け入れ条件