Migrate ccsdk/apps to ccsdk/cds
[ccsdk/cds.git] / ms / controllerblueprints / modules / blueprint-core / src / main / kotlin / org / onap / ccsdk / cds / controllerblueprints / core / BluePrintProcessorException.kt
1 /*
2  * Copyright © 2017-2018 AT&T Intellectual Property.
3  * Modifications Copyright © 2018 IBM.
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.onap.ccsdk.cds.controllerblueprints.core
19
20 /**
21  *
22  *
23  * @author Brinda Santh
24  */
25 class BluePrintProcessorException : RuntimeException {
26     var code: Int = 100
27
28     constructor(message: String, cause: Throwable) : super(message, cause)
29     constructor(message: String) : super(message)
30     constructor(cause: Throwable) : super(cause)
31     constructor(cause: Throwable, message: String, vararg args: Any?) : super(format(message, *args), cause)
32
33     constructor(code: Int, cause: Throwable) : super(cause) {
34         this.code = code
35     }
36
37     constructor(code: Int, message: String) : super(message) {
38         this.code = code
39     }
40
41     constructor(code: Int, message: String, cause: Throwable) : super(message, cause) {
42         this.code = code
43     }
44
45     constructor(code: Int, cause: Throwable, message: String, vararg args: Any?)
46             : super(String.format(message, *args), cause) {
47         this.code = code
48     }
49 }
50