adjust the code
[vfc/nfvo/wfengine.git] / rest-client / src / main / java / org / openo / baseservice / remoteservice / exception / ExceptionArgs.java
1 /*
2  * Copyright (c) 2016, Huawei Technologies Co., Ltd.
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.openo.baseservice.remoteservice.exception;
17
18 /**
19  * ROA exception handling parameters.
20  * <br/>
21  * <p>
22  * </p>
23  * 
24  * @author
25  * @version SDNO 0.5 28-May-2016
26  */
27 public class ExceptionArgs {
28
29     /**
30      * Exception descriptions.
31      */
32     private String[] descArgs = null;
33
34     /**
35      * Exception reasons.
36      */
37     private String[] reasonArgs = null;
38
39     /**
40      * Exception detals.
41      */
42     private String[] detailArgs = null;
43
44     /**
45      * Exception advices.
46      */
47     private String[] adviceArgs = null;
48
49     /**
50      * Constructor<br/>
51      * <p>
52      * </p>
53      * 
54      * @since SDNO 0.5
55      */
56     public ExceptionArgs() {
57         // default constructor.
58     }
59
60     /**
61      * Constructor<br/>
62      * <p>
63      * </p>
64      * 
65      * @since SDNO 0.5
66      * @param descArgs: descriptions.
67      * @param reasonArgs: reasons.
68      * @param detailArgs: details.
69      * @param adviceArgs: advices.
70      */
71     public ExceptionArgs(final String[] descArgs, final String[] reasonArgs, final String[] detailArgs,
72             final String[] adviceArgs) {
73         this.descArgs = descArgs;
74         this.reasonArgs = reasonArgs;
75         this.detailArgs = detailArgs;
76         this.adviceArgs = adviceArgs;
77     }
78
79     public String[] getDescArgs() {
80         return descArgs;
81     }
82
83     public void setDescArgs(final String[] descArgs) {
84         this.descArgs = descArgs;
85     }
86
87     public String[] getReasonArgs() {
88         return reasonArgs;
89     }
90
91     public void setReasonArgs(final String[] reasonArgs) {
92         this.reasonArgs = reasonArgs;
93     }
94
95     public String[] getDetailArgs() {
96         return detailArgs;
97     }
98
99     public void setDetailArgs(final String[] detailArgs) {
100         this.detailArgs = detailArgs;
101     }
102
103     public String[] getAdviceArgs() {
104         return adviceArgs;
105     }
106
107     public void setAdviceArgs(final String[] adviceArgs) {
108         this.adviceArgs = adviceArgs;
109     }
110 }