Skip to content

Commit 6253eba

Browse files
committed
Revert "removing unused class"
This reverts commit 2722b7f.
1 parent bc4a51e commit 6253eba

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
package processing.mode.java.preproc;
2+
3+
4+
import processing.mode.java.preproc.PdePreprocessIssue;
5+
6+
/**
7+
* Exception indicating that a preprocessor issue was found.
8+
*/
9+
public class PdePreprocessIssueException extends RuntimeException {
10+
11+
private final PdePreprocessIssue preprocessIssue;
12+
13+
/**
14+
* Create a new exception indicating that there was a preprocessing issue.
15+
*
16+
* @param newPreprocessIssue Issue encountered.
17+
*/
18+
public PdePreprocessIssueException(PdePreprocessIssue newPreprocessIssue) {
19+
super(newPreprocessIssue.getMsg());
20+
preprocessIssue = newPreprocessIssue;
21+
}
22+
23+
/**
24+
* Get information about the preprocessing issue found.
25+
*
26+
* @return Record of the preprocessor issue.
27+
*/
28+
public PdePreprocessIssue getIssue() {
29+
return preprocessIssue;
30+
}
31+
32+
}

0 commit comments

Comments
 (0)