|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| SoapFault.java | - | 93.3% | 88.9% | 91.7% |
|
||||||||||||||
| 1 |
/**
|
|
| 2 |
*
|
|
| 3 |
* Copyright 2004 Protique Ltd
|
|
| 4 |
*
|
|
| 5 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
| 6 |
* you may not use this file except in compliance with the License.
|
|
| 7 |
* You may obtain a copy of the License at
|
|
| 8 |
*
|
|
| 9 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
| 10 |
*
|
|
| 11 |
* Unless required by applicable law or agreed to in writing, software
|
|
| 12 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
| 13 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
| 14 |
* See the License for the specific language governing permissions and
|
|
| 15 |
* limitations under the License.
|
|
| 16 |
*
|
|
| 17 |
**/
|
|
| 18 |
package org.codehaus.activesoap;
|
|
| 19 |
|
|
| 20 |
/**
|
|
| 21 |
* Represents a SOAP fault which occurred while processing the
|
|
| 22 |
* message.
|
|
| 23 |
*
|
|
| 24 |
* @version $Revision: 1.5 $
|
|
| 25 |
*/
|
|
| 26 |
public class SoapFault extends Exception { |
|
| 27 |
private String code;
|
|
| 28 |
private String subcode;
|
|
| 29 |
private String reason;
|
|
| 30 |
private String node;
|
|
| 31 |
private String role;
|
|
| 32 |
|
|
| 33 | 0 |
public SoapFault(Exception cause) {
|
| 34 | 0 |
super(cause);
|
| 35 |
} |
|
| 36 |
|
|
| 37 | 6 |
public SoapFault(String code, String reason) {
|
| 38 | 6 |
this.code = code;
|
| 39 | 6 |
this.reason = reason;
|
| 40 |
} |
|
| 41 |
|
|
| 42 | 1 |
public SoapFault(String code, String subcode, String reason) {
|
| 43 | 1 |
this.code = code;
|
| 44 | 1 |
this.subcode = subcode;
|
| 45 | 1 |
this.reason = reason;
|
| 46 |
} |
|
| 47 |
|
|
| 48 | 7 |
public SoapFault(String code, String reason, String node, String role) {
|
| 49 | 7 |
this.code = code;
|
| 50 | 7 |
this.reason = reason;
|
| 51 | 7 |
this.node = node;
|
| 52 | 7 |
this.role = role;
|
| 53 |
} |
|
| 54 |
|
|
| 55 | 14 |
public String getCode() {
|
| 56 | 14 |
return code;
|
| 57 |
} |
|
| 58 |
|
|
| 59 | 14 |
public String getSubcode() {
|
| 60 | 14 |
return subcode;
|
| 61 |
} |
|
| 62 |
|
|
| 63 | 14 |
public String getReason() {
|
| 64 | 14 |
return reason;
|
| 65 |
} |
|
| 66 |
|
|
| 67 | 14 |
public String getNode() {
|
| 68 | 14 |
return node;
|
| 69 |
} |
|
| 70 |
|
|
| 71 | 14 |
public String getRole() {
|
| 72 | 14 |
return role;
|
| 73 |
} |
|
| 74 |
} |
|
| 75 |
|
|
||||||||||