DCAE-D be initial commit
[sdc/dcae-d/dt-be-main.git] / dcaedt_validator / checker / src / main / java / org / onap / sdc / dcae / checker / ProcessorException.java
1 package org.onap.sdc.dcae.checker;
2
3
4 /**
5  */
6 public class ProcessorException extends CheckerException {
7
8         private Target  target;
9
10   public ProcessorException(Target theTarget, String theMsg, Throwable theCause) {
11     super(theMsg, theCause);
12                 this.target = theTarget;
13   }
14
15   public ProcessorException(Target theTarget, String theMsg) {
16     super(theMsg);
17                 this.target = theTarget;
18   }
19
20         public Target getTarget() {
21                 return this.target;
22         }
23
24         @Override
25         public String getMessage() {
26                 return this.target + ":" + super.getMessage() + (getCause() == null ? "" : ("(" + getCause() + ")"));
27         }
28 }