1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.juddi.datatype.response;
17
18 import org.apache.juddi.datatype.RegistryObject;
19
20 /***
21 * Used in Result in response DispositionReport.
22 *
23 * @author Steve Viens (sviens@apache.org)
24 */
25 public class ErrInfo implements RegistryObject
26 {
27 String errCode;
28 String errMsg;
29
30 /***
31 *
32 */
33 public ErrInfo()
34 {
35 }
36
37 /***
38 *
39 */
40 public ErrInfo(String code)
41 {
42 setErrCode(code);
43 }
44
45 /***
46 *
47 */
48 public ErrInfo(String code,String msg)
49 {
50 setErrCode(code);
51 setErrMsg(msg);
52 }
53
54 /***
55 * Sets the exception code of this ErrInfo to the given value.
56 * @param code The new code number for this ErrInfo.
57 */
58 public void setErrCode(String code)
59 {
60 this.errCode = code;
61 }
62
63 /***
64 * Returns the exception code of this ErrInfo.
65 * @return The exception code of this ErrInfo.
66 */
67 public String getErrCode()
68 {
69 return this.errCode;
70 }
71
72 /***
73 * Sets the exception message of this ErrInfo to the given value.
74 * @param msg The new exception message for this ErrInfo.
75 */
76 public void setErrMsg(String msg)
77 {
78 this.errMsg = msg;
79 }
80
81 /***
82 * Returns the exception message of this ErrInfo.
83 * @return The exception message of this ErrInfo.
84 */
85 public String getErrMsg()
86 {
87 return this.errMsg;
88 }
89 }