a1bd28dca65ebd928fae2612ec3fb3bdfd917550
[policy/gui.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
4  *  Modifications Copyright (C) 2020 Nordix Foundation.
5  * ================================================================================
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *      http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  * SPDX-License-Identifier: Apache-2.0
19  * ============LICENSE_END=========================================================
20  */
21
22 package org.onap.policy.gui.editors.apex.rest;
23
24 import org.onap.policy.apex.model.basicmodel.concepts.ApexException;
25
26 /**
27  * Exceptions from the Apex editor.
28  *
29  * @author Liam Fallon (liam.fallon@ericsson.com)
30  */
31 public class ApexEditorException extends ApexException {
32     private static final long serialVersionUID = 4867385591967018254L;
33
34     /**
35      * Instantiates a new apex editor exception.
36      *
37      * @param message the message on the exception
38      */
39     public ApexEditorException(final String message) {
40         super(message);
41     }
42
43     /**
44      * Instantiates a new apex editor exception.
45      *
46      * @param message the message on the exception
47      * @param object  the object that the exception was thrown on
48      */
49     public ApexEditorException(final String message, final Object object) {
50         super(message, object);
51     }
52
53     /**
54      * Instantiates a new apex editor exception.
55      *
56      * @param message the message on the exception
57      * @param ex      the exception that caused this Apex exception
58      */
59     public ApexEditorException(final String message, final Exception ex) {
60         super(message, ex);
61     }
62
63     /**
64      * Instantiates a new apex editor exception.
65      *
66      * @param message the message on the exception
67      * @param ex      the exception that caused this Apex exception
68      * @param object  the object that the exception was thrown on
69      */
70     public ApexEditorException(final String message, final Exception ex, final Object object) {
71         super(message, ex, object);
72     }
73
74 }