001package org.hl7.fhir.r5.terminologies.validation;
002
003import java.util.List;
004
005import org.hl7.fhir.exceptions.FHIRException;
006import org.hl7.fhir.r5.model.OperationOutcome.OperationOutcomeIssueComponent;
007
008public class VSCheckerException extends FHIRException {
009
010  private List<OperationOutcomeIssueComponent> issues;
011  private boolean warning;
012
013  public VSCheckerException(String message, List<OperationOutcomeIssueComponent> issues) {
014    super(message);
015    this.issues = issues;
016  }
017
018  public VSCheckerException(String message, List<OperationOutcomeIssueComponent> issues, boolean warning) {
019    super(message);
020    this.issues = issues;
021    this.warning = warning;
022  }
023
024  public List<OperationOutcomeIssueComponent> getIssues() {
025    return issues;
026  }
027
028  private static final long serialVersionUID = -5889505119633054187L;
029
030  public boolean isWarning() {
031    return warning;
032  }
033  
034}