summaryrefslogtreecommitdiffstats
path: root/dcaedt_validator/checker/src/main/java/org/onap/sdc/dcae/checker/ProcessorException.java
blob: d4c557125ac87bb852ca011a91446cb6eb07888a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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() + ")"));
	}
}