public static WstxValidationException create(String msg, Location loc, int severity) { return create(new XMLValidationProblem(loc, msg, severity)); }
public static WstxValidationException create(String msg, Location loc, int severity) { return create(new XMLValidationProblem(loc, msg, severity)); }
public static WstxValidationException create(String msg, Location loc, int severity) { return create(new XMLValidationProblem(loc, msg, severity)); }
public void reportProblem(XMLValidationProblem prob) throws XMLValidationException { // Custom handler set? If so, it'll take care of it: if (mVldProbHandler != null) { mVldProbHandler.reportProblem(prob); return; } /* For now let's implement basic functionality: warnings get * reported via XMLReporter, errors and fatal errors result in * immediate exceptions. */ if (prob.getSeverity() >= XMLValidationProblem.SEVERITY_ERROR) { if (isValidating()) { throw WstxValidationException.create(prob); } } XMLReporter rep = mConfig.getProblemReporter(); if (rep != null) { doReportProblem(rep, ErrorConsts.WT_VALIDATION, prob.getMessage(), prob.getLocation()); } }
public void reportProblem(XMLValidationProblem prob) throws XMLValidationException { // Custom handler set? If so, it'll take care of it: if (mVldProbHandler != null) { mVldProbHandler.reportProblem(prob); return; } /* For now let's implement basic functionality: warnings get * reported via XMLReporter, errors and fatal errors result in * immediate exceptions. */ if (prob.getSeverity() >= XMLValidationProblem.SEVERITY_ERROR) { if (isValidating()) { throw WstxValidationException.create(prob); } } XMLReporter rep = mConfig.getProblemReporter(); if (rep != null) { doReportProblem(rep, ErrorConsts.WT_VALIDATION, prob.getMessage(), prob.getLocation()); } }
public void reportProblem(XMLValidationProblem prob) throws XMLValidationException { // Custom handler set? If so, it'll take care of it: if (mVldProbHandler != null) { mVldProbHandler.reportProblem(prob); return; } /* For now let's implement basic functionality: warnings get * reported via XMLReporter, errors and fatal errors result in * immediate exceptions. */ if (prob.getSeverity() >= XMLValidationProblem.SEVERITY_ERROR) { if (isValidating()) { throw WstxValidationException.create(prob); } } XMLReporter rep = mConfig.getProblemReporter(); if (rep != null) { doReportProblem(rep, ErrorConsts.WT_VALIDATION, prob.getMessage(), prob.getLocation()); } }