1
+ /*
2
+ * NotPSymbolException.java
3
+ * ---------------------------------
4
+ * Copyright (c) 2019
5
+ * RESOLVE Software Research Group
6
+ * School of Computing
7
+ * Clemson University
8
+ * All rights reserved.
9
+ * ---------------------------------
10
+ * This file is subject to the terms and conditions defined in
11
+ * file 'LICENSE.txt', which is part of this source code package.
12
+ */
13
+ package edu .clemson .cs .rsrg .prover .exception ;
14
+
15
+ import edu .clemson .cs .rsrg .prover .absyn .PExp ;
16
+ import edu .clemson .cs .rsrg .prover .absyn .expressions .PSymbol ;
17
+ import edu .clemson .cs .rsrg .statushandling .exception .CompilerException ;
18
+
19
+ /**
20
+ * <p>A {@code NotPSymbolException} indicates we encountered an expression
21
+ * that isn't of type {@link PSymbol}.</p>
22
+ *
23
+ * @author Yu-Shan Sun
24
+ * @version 1.0
25
+ */
26
+ public class NotPSymbolException extends CompilerException {
27
+
28
+ // ===========================================================
29
+ // Member Fields
30
+ // ===========================================================
31
+
32
+ /** <p>Serial version for Serializable objects</p> */
33
+ private static final long serialVersionUID = -6126191138057900190L ;
34
+
35
+ // ==========================================================
36
+ // Constructors
37
+ // ==========================================================
38
+
39
+ /**
40
+ * <p>This constructor creates an exception that indicates the
41
+ * automated prover encountered a non-{@link PSymbol} expression.</p>
42
+ */
43
+ public NotPSymbolException (PExp exp ) {
44
+ super ("unhandled PExp: " + exp .toString (), (Throwable ) null );
45
+ }
46
+
47
+ }
0 commit comments