01: // This file is part of KeY - Integrated Deductive Software Design
02: // Copyright (C) 2001-2007 Universitaet Karlsruhe, Germany
03: // Universitaet Koblenz-Landau, Germany
04: // Chalmers University of Technology, Sweden
05: //
06: // The KeY system is protected by the GNU General Public License.
07: // See LICENSE.TXT for details.
08: //
09: //
10: package de.uka.ilkd.key.proof.init;
11:
12: /** Reading prover input failed
13: */
14: public class ProofInputException extends Exception {
15:
16: public static final ProofInputException USER_ABORT_EXCEPTION = new ProofInputException(
17: "User cancelled problem loading.");
18:
19: String reason;
20:
21: public ProofInputException(Exception e) {
22: super (e.getMessage());
23: reason = e.toString();
24: initCause(e);
25: }
26:
27: public ProofInputException(String s) {
28: super (s);
29: reason = s;
30: }
31:
32: public String toString() {
33: return reason;
34: }
35:
36: }
|