[YMIR-294] 画面固有のExceptionHandling Created: 2009-01-21 Updated: 2009-02-28 Resolved: 2009-02-27 |
|
Status: | Closed |
Project: | Ymir |
Component/s: | ymir-core |
Affects Version/s: | 1.0.0 |
Fix Version/s: | 1.0.2 |
Type: | Improvement | Priority: | Major |
Reporter: | jflute | Assignee: | skirnir |
Resolution: | Fixed | Votes: | 0 |
Labels: | None |
Description |
【概要】 Pageクラスでtry-catchして遷移で事足りる場合は問題ないが、 Pageクラスでトランザクションを開始するアーキテクチャ特有の 【解決案】 PageクラスのInterceptorの中で @ExceptionHandling(BizXxxException.class, BarPage.class) public class FooPage { } |
Comments |
Comment by skirnir [ 2009-02-28 ] |
完了とします。 |
Comment by jflute [ 2009-02-27 ] |
確認しました。ありがとうございます。 |
Comment by skirnir [ 2009-02-27 ] |
対処しました(r2855)。 |
Comment by jflute [ 2009-02-24 ] |
議論した結果: アノテーションではなく、Pageクラスにコールバックするような感じで。 @ExceptionHandling(BizXxxException.class) public Response handleXxx() { return Redirect.to(...); } |
Comment by jflute [ 2009-01-21 ] |
遷移先へ渡す値とかメッセージとかどう扱うかは要検討かと思われます。 |