KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > sitemap > PatternException


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

16 package org.apache.cocoon.sitemap;
17
18 import org.apache.avalon.framework.CascadingException;
19
20 /**
21  * This exception is thrown by a <code>URIMatcher</code> or by a
22  * <code>URITranslator</code> when there's something wrong with the matching or
23  * translation patterns.
24  *
25  * @author <a HREF="mailto:pier@apache.org">Pierpaolo Fumagalli</a>
26  * (Apache Software Foundation)
27  * @author <a HREF="mailto:sylvain@apache.org">Sylvain Wallez</a>
28  * @version CVS $Id: PatternException.java 30932 2004-07-29 17:35:38Z vgritsenko $
29  */

30 public class PatternException extends CascadingException {
31
32     /**
33      * Construct a new <code>PatternException</code> instance.
34      */

35     public PatternException(String JavaDoc message) {
36         super(message, null);
37     }
38
39     /**
40      * Creates a new <code>PatternException</code> instance.
41      *
42      * @param ex an <code>Exception</code> value
43      */

44     public PatternException(Exception JavaDoc ex) {
45         super(ex.getMessage(), ex);
46     }
47
48     /**
49      * Construct a new <code>PatternException</code> that references
50      * a parent Exception.
51      */

52     public PatternException(String JavaDoc message, Throwable JavaDoc t) {
53         super(message, t);
54     }
55 }
56
Popular Tags