View Javadoc

1   /*
2    * Copyright 2000-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  
17  package org.apache.jetspeed.util;
18  
19  import org.apache.commons.lang.exception.NestableException;
20  
21  /***
22   * <P>General Validation exception, wrappering all other underlying exceptions.</P>
23   *
24   * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
25   * @version $Id: ValidationException.java,v 1.2 2004/02/23 03:23:42 jford Exp $
26   */
27  
28  public class ValidationException extends NestableException
29  {
30  
31      /***
32       * Constructs a new <code>TorqueException</code> without specified detail
33       * message.
34       */
35      public ValidationException()
36      {
37      }
38  
39      /***
40       * Constructs a new <code>ValidationException</code> with specified detail
41       * message.
42       *
43       * @param parameter the parameter on which validation fails.
44       */
45      public ValidationException(String param)
46      {
47          super(param);
48      }
49  
50      /***
51       * Constructs a new <code>ValidationException</code> with specified nested
52       * <code>Throwable</code>.
53       *
54       * @param nested the exception or error that caused this exception
55       *               to be thrown.
56       */
57      public ValidationException(Throwable nested)
58      {
59          super(nested);
60      }
61  
62      /***
63       * Constructs a new <code>ValidationException</code> with specified detail
64       * message and nested <code>Throwable</code>.
65       *
66       * @param msg the error message.
67       * @param nested the exception or error that caused this exception
68       *               to be thrown.
69       */
70      public ValidationException(String msg, Throwable nested)
71      {
72          super(msg, nested);
73      }
74  }
75  
76  
77  
78