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; 007import org.hl7.fhir.r5.terminologies.utilities.TerminologyServiceErrorClass; 008 009public class VSCheckerException extends FHIRException { 010 011 private List<OperationOutcomeIssueComponent> issues; 012 private boolean warning; 013 private TerminologyServiceErrorClass type; 014 015 public VSCheckerException(String message, List<OperationOutcomeIssueComponent> issues) { 016 super(message); 017 this.issues = issues; 018 } 019 020 public VSCheckerException(String message, List<OperationOutcomeIssueComponent> issues, boolean warning) { 021 super(message); 022 this.issues = issues; 023 this.warning = warning; 024 } 025 026 public VSCheckerException(String message, List<OperationOutcomeIssueComponent> issues, TerminologyServiceErrorClass type) { 027 super(message); 028 this.issues = issues; 029 this.type = type; 030 } 031 032 public List<OperationOutcomeIssueComponent> getIssues() { 033 return issues; 034 } 035 036 private static final long serialVersionUID = -5889505119633054187L; 037 038 public boolean isWarning() { 039 return warning; 040 } 041 042 public TerminologyServiceErrorClass getType() { 043 return type; 044 } 045 046 public void setType(TerminologyServiceErrorClass type) { 047 this.type = type; 048 } 049 050}