KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tapestry > pets > PetshopException


1 package org.apache.tapestry.pets;
2
3 import org.apache.tapestry.html.BasePage;
4 import org.apache.tapestry.util.exception.ExceptionAnalyzer;
5 import org.apache.tapestry.util.exception.ExceptionDescription;
6
7 public class PetshopException extends BasePage {
8
9     private ExceptionDescription[] _exceptions;
10
11     public void detach() {
12         _exceptions = null;
13
14         super.detach();
15     }
16
17     public ExceptionDescription[] getExceptions() {
18         return _exceptions;
19     }
20
21     public void setException(Throwable JavaDoc value) {
22         ExceptionAnalyzer analyzer;
23
24         analyzer = new ExceptionAnalyzer();
25
26         _exceptions = analyzer.analyze(value);
27     }
28
29 }
Popular Tags