View Javadoc

1   /*
2    * Copyright  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.kandula.faults;
18  
19  /***
20   * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
21   */
22  public class InvalidParameterException extends AbstractKandulaException {
23  
24  	/***
25  	 * 
26  	 */
27  	private static final long serialVersionUID = -6973003681131477662L;
28  
29  	/***
30  	 * 
31  	 */
32  	public InvalidParameterException() {
33  		super();
34  	}
35  
36  	/***
37  	 * @param arg0
38  	 */
39  	public InvalidParameterException(String arg0) {
40  		super(arg0);
41  	}
42  
43  	/***
44  	 * @param arg0
45  	 */
46  	public InvalidParameterException(Throwable arg0) {
47  		super(arg0);
48  	}
49  
50  	/***
51  	 * @param arg0
52  	 * @param arg1
53  	 */
54  	public InvalidParameterException(String arg0, Throwable arg1) {
55  		super(arg0, arg1);
56  	}
57  
58  	/*
59  	 * (non-Javadoc)
60  	 * 
61  	 * @see org.apache.kandula.faults.KandulaFault#getFaultCode()
62  	 */
63  	public String getFaultCode() {
64  		return "Sender";
65  	}
66  
67  	/*
68  	 * (non-Javadoc)
69  	 * 
70  	 * @see org.apache.kandula.faults.KandulaFault#getFaultSubcode()
71  	 */
72  	public String getFaultSubcode() {
73  		return "wscoor:InvalidParameters";
74  	}
75  
76  	/*
77  	 * (non-Javadoc)
78  	 * 
79  	 * @see org.apache.kandula.faults.KandulaFault#getFaultReason()
80  	 */
81  	public String getFaultReason() {
82  
83  		return "The message contained invalid parameters and could not be processed.x";
84  	}
85  }