1 package org.onap.sdc.dcae.checker;
5 * A target error represents an error in target the resource being checked.
6 * We only represent it as a Throwable because the libraries that perform parsing and syntax validation
7 * represent their errors as such ..
9 public class TargetError extends Throwable {
12 public static enum Level {
18 private String location; //we might need an more detailed representation
19 //here: it could be a YAML document jpath or
20 //document location (line).
21 private String target;
23 public TargetError(String theTarget, String theLocation, String theMessage, Throwable theCause) {
24 super(theMessage, theCause);
25 this.target = theTarget;
26 this.location = theLocation;
29 public TargetError(String theTarget, String theLocation, String theMessage) {
30 this(theTarget, theLocation, theMessage, null);
33 public String getTarget() {
37 public String getLocation() {