KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > uitags > tagutil > validation > TlvLeakageException


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

18 package net.sf.uitags.tagutil.validation;
19
20
21 /**
22  * Thrown to indicate that an error should have been caught by
23  * TLV (Tag Library Validator) but somehow leaks into being a runtime
24  * error. Throw this when you detect an error that you feel should have
25  * been dealt with by TLV.
26  *
27  * @see net.sf.uitags.tagutil.validation.RuntimeValidationException
28  * @author hgani
29  * @version $Id$
30  */

31 public class TlvLeakageException extends RuntimeException JavaDoc {
32
33   /**
34    * Serial Version UID.
35    */

36   private static final long serialVersionUID = 52L;
37
38   /**
39    * See {@link RuntimeException#RuntimeException()}.
40    */

41   public TlvLeakageException() {
42     super();
43   }
44
45   /**
46    * See {@link RuntimeException#RuntimeException(java.lang.String)}.
47    *
48    * @param message the detail message
49    */

50   public TlvLeakageException(String JavaDoc message) {
51     super(message);
52   }
53
54   /**
55    * See
56    * {@link RuntimeException#RuntimeException(java.lang.String, java.lang.Throwable)}.
57    *
58    * @param message the detail message
59    * @param cause the cause
60    */

61   public TlvLeakageException(String JavaDoc message, Throwable JavaDoc cause) {
62     super(message, cause);
63   }
64
65   /**
66    * See
67    * {@link RuntimeException#RuntimeException(java.lang.Throwable)}.
68    *
69    * @param cause the cause
70    */

71   public TlvLeakageException(Throwable JavaDoc cause) {
72     super(cause);
73   }
74
75   /** {@inheritDoc} */
76   public String JavaDoc toString() {
77     return super.toString();
78   }
79 }
80
Popular Tags