01: /*
02: * soapUI, copyright (C) 2004-2007 eviware.com
03: *
04: * soapUI is free software; you can redistribute it and/or modify it under the
05: * terms of version 2.1 of the GNU Lesser General Public License as published by
06: * the Free Software Foundation.
07: *
08: * soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
09: * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10: * See the GNU Lesser General Public License for more details at gnu.org.
11: */
12:
13: package com.eviware.soapui.impl.wsdl.teststeps;
14:
15: import com.eviware.soapui.model.testsuite.TestStepProperty;
16:
17: /**
18: * Exception than can occur during property-transfers
19: *
20: * @author ole.matzura
21: */
22:
23: public class PropertyTransferException extends Exception {
24: private String message;
25: private final String sourceStepName;
26: private final String targetStepName;
27: private String sourcePropertyName;
28: private String sourcePropertyValue;
29: private String targetPropertyName;
30: private String targetPropertyValue;
31:
32: public PropertyTransferException(String message,
33: String sourceStepName, TestStepProperty source,
34: String targetStepName, TestStepProperty target) {
35: this .message = message;
36: this .sourceStepName = sourceStepName;
37: this .targetStepName = targetStepName;
38:
39: if (source != null) {
40: sourcePropertyName = source.getName();
41: sourcePropertyValue = source.getValue();
42: }
43: if (target != null) {
44: targetPropertyName = target.getName();
45: targetPropertyValue = target.getValue();
46: }
47: }
48:
49: public String getMessage() {
50: return message;
51: }
52:
53: public String getSourcePropertyName() {
54: return sourcePropertyName;
55: }
56:
57: public String getSourcePropertyValue() {
58: return sourcePropertyValue;
59: }
60:
61: public String getSourceStepName() {
62: return sourceStepName;
63: }
64:
65: public String getTargetPropertyName() {
66: return targetPropertyName;
67: }
68:
69: public String getTargetPropertyValue() {
70: return targetPropertyValue;
71: }
72:
73: public String getTargetStepName() {
74: return targetStepName;
75: }
76: }
|