Revert "removing unused class"

This reverts commit 2722b7f7d1.
This commit is contained in:
Ben Fry
2020-09-15 17:02:55 -04:00
parent bc4a51e666
commit 6253eba108

View File

@@ -0,0 +1,32 @@
package processing.mode.java.preproc;
import processing.mode.java.preproc.PdePreprocessIssue;
/**
* Exception indicating that a preprocessor issue was found.
*/
public class PdePreprocessIssueException extends RuntimeException {
private final PdePreprocessIssue preprocessIssue;
/**
* Create a new exception indicating that there was a preprocessing issue.
*
* @param newPreprocessIssue Issue encountered.
*/
public PdePreprocessIssueException(PdePreprocessIssue newPreprocessIssue) {
super(newPreprocessIssue.getMsg());
preprocessIssue = newPreprocessIssue;
}
/**
* Get information about the preprocessing issue found.
*
* @return Record of the preprocessor issue.
*/
public PdePreprocessIssue getIssue() {
return preprocessIssue;
}
}