All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cdc.applic.expressions.checks.SyntaxIssue Maven / Gradle / Ivy

The newest version!
package cdc.applic.expressions.checks;

import cdc.applic.expressions.SyntacticException;

/**
 * Specialization of Issue dedicated to Syntax problems.
 * 

* They are associated to a {@link SyntacticException}. * * @author Damien Carbonne */ public class SyntaxIssue extends ApplicIssue { public SyntaxIssue(String context, SyntacticException cause) { super(ApplicIssueType.SYNTACTIC_ISSUE, null, new ExpressionLocation(context, cause.getExpression(), cause.getBeginIndex(), cause.getEndIndex()), cause.getFullMessage(), cause); } @Override public SyntacticException getCause() { return (SyntacticException) super.getCause(); } public SyntacticException.Detail getDetail() { return getCause().getDetail(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy