KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tapestry > vlib > pages > ApplicationUnavailable


1 // Copyright 2004 The Apache Software Foundation
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14

15 package org.apache.tapestry.vlib.pages;
16
17 import org.apache.tapestry.pages.Exception;
18 import org.apache.tapestry.vlib.IErrorProperty;
19
20 /**
21  * A page only displayed when the application is unavailable
22  * (typically because of repeated {@link java.rmi.RemoteException}s
23  * or {@link javax.naming.NamingException}s accessing EJBs.
24  *
25  * @see org.apache.tapestry.vlib.VirtualLibraryEngine#rmiFailure(String, java.rmi.RemoteException, int)
26  *
27  *
28  * @author Howard Lewis Ship
29  * @version $Id: ApplicationUnavailable.java,v 1.5 2004/02/19 17:37:48 hlship Exp $
30  * @since 2.2
31  *
32  **/

33
34 public abstract class ApplicationUnavailable extends Exception JavaDoc
35 implements IErrorProperty
36 {
37     
38     public void activate(String JavaDoc message, Throwable JavaDoc ex)
39     {
40         setError(message);
41         
42         setException(ex);
43     }
44 }
45
Popular Tags