Initial TCA commit into DCAEGEN2
[dcaegen2/analytics/tca.git] / dcae-analytics-common / src / main / java / org / openecomp / dcae / apod / analytics / common / exception / MessageProcessingException.java
1 /*
2  * ===============================LICENSE_START======================================
3  *  dcae-analytics
4  * ================================================================================
5  *    Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  *  Licensed under the Apache License, Version 2.0 (the "License");
8  *  you may not use this file except in compliance with the License.
9  *   You may obtain a copy of the License at
10  *
11  *          http://www.apache.org/licenses/LICENSE-2.0
12  *
13  *  Unless required by applicable law or agreed to in writing, software
14  *  distributed under the License is distributed on an "AS IS" BASIS,
15  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  *  See the License for the specific language governing permissions and
17  *  limitations under the License.
18  *  ============================LICENSE_END===========================================
19  */
20
21 package org.openecomp.dcae.apod.analytics.common.exception;
22
23 import org.openecomp.dcae.apod.analytics.common.service.processor.MessageProcessor;
24 import org.slf4j.Logger;
25
26 /**
27  * Runtime Exception caused due to {@link MessageProcessor} failure while processing a message.
28  *
29  * @author Rajiv Singla . Creation Date: 11/7/2016.
30  */
31 public class MessageProcessingException extends DCAEAnalyticsRuntimeException {
32
33     /**
34      * @param message - Error Message for Exception
35      * @param cause   - Actual Exception which caused {@link DCAEAnalyticsRuntimeException}
36      */
37     public MessageProcessingException(String message, Throwable cause) {
38         super(message, cause);
39     }
40
41     /**
42      * Creates and logs the DCAE Runtime Exception to given logger
43      *
44      * @param message - Error Message for Exception and logging
45      * @param logger  - Logger used for logging exception
46      * @param cause   - Actual exception which caused {@link DCAEAnalyticsRuntimeException}
47      */
48     public MessageProcessingException(String message, Logger logger, Throwable cause) {
49         super(message, logger, cause);
50     }
51 }