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 at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * 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 and14 * limitations under the License.15 */1617packageorg.apache.jetspeed.util;
1819import org.apache.commons.lang.exception.NestableException;
2021/***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 */2728publicclassValidationExceptionextends NestableException
29 {
3031/***32 * Constructs a new <code>TorqueException</code> without specified detail33 * message.34 */35publicValidationException()
36 {
37 }
3839/***40 * Constructs a new <code>ValidationException</code> with specified detail41 * message.42 *43 * @param parameter the parameter on which validation fails.44 */45publicValidationException(String param)
46 {
47super(param);
48 }
4950/***51 * Constructs a new <code>ValidationException</code> with specified nested52 * <code>Throwable</code>.53 *54 * @param nested the exception or error that caused this exception55 * to be thrown.56 */57publicValidationException(Throwable nested)
58 {
59super(nested);
60 }
6162/***63 * Constructs a new <code>ValidationException</code> with specified detail64 * message and nested <code>Throwable</code>.65 *66 * @param msg the error message.67 * @param nested the exception or error that caused this exception68 * to be thrown.69 */70publicValidationException(String msg, Throwable nested)
71 {
72super(msg, nested);
73 }
74 }
75767778