File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
java/src/processing/mode/java/preproc Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments