KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > juddi > datatype > response > ErrInfo


1 /*
2  * Copyright 2001-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 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 JavaDoc errCode;
28   String JavaDoc errMsg;
29
30   /**
31    *
32    */

33   public ErrInfo()
34   {
35   }
36
37   /**
38    *
39    */

40   public ErrInfo(String JavaDoc code)
41   {
42     setErrCode(code);
43   }
44
45   /**
46    *
47    */

48   public ErrInfo(String JavaDoc code,String JavaDoc 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 JavaDoc 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 JavaDoc 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 JavaDoc 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 JavaDoc getErrMsg()
86   {
87     return this.errMsg;
88   }
89 }
90
Popular Tags