summaryrefslogtreecommitdiffstats
path: root/dcaedt_validator/checker/src/main/java/org/onap/sdc/dcae/checker/ProcessorException.java
diff options
context:
space:
mode:
Diffstat (limited to 'dcaedt_validator/checker/src/main/java/org/onap/sdc/dcae/checker/ProcessorException.java')
-rw-r--r--dcaedt_validator/checker/src/main/java/org/onap/sdc/dcae/checker/ProcessorException.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/dcaedt_validator/checker/src/main/java/org/onap/sdc/dcae/checker/ProcessorException.java b/dcaedt_validator/checker/src/main/java/org/onap/sdc/dcae/checker/ProcessorException.java
new file mode 100644
index 0000000..d4c5571
--- /dev/null
+++ b/dcaedt_validator/checker/src/main/java/org/onap/sdc/dcae/checker/ProcessorException.java
@@ -0,0 +1,28 @@
+package org.onap.sdc.dcae.checker;
+
+
+/**
+ */
+public class ProcessorException extends CheckerException {
+
+ private Target target;
+
+ public ProcessorException(Target theTarget, String theMsg, Throwable theCause) {
+ super(theMsg, theCause);
+ this.target = theTarget;
+ }
+
+ public ProcessorException(Target theTarget, String theMsg) {
+ super(theMsg);
+ this.target = theTarget;
+ }
+
+ public Target getTarget() {
+ return this.target;
+ }
+
+ @Override
+ public String getMessage() {
+ return this.target + ":" + super.getMessage() + (getCause() == null ? "" : ("(" + getCause() + ")"));
+ }
+}