mirror of
https://github.com/processing/processing4.git
synced 2026-02-02 21:29:17 +01:00
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user