|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
ContradictionException.java | - | 50% | 50% | 50% |
|
1 | /* | |
2 | * SAT4J: a SATisfiability library for Java | |
3 | * Copyright (C) 2004 Daniel Le Berre | |
4 | * | |
5 | * Based on the original minisat specification from: | |
6 | * | |
7 | * An extensible SAT solver. Niklas Eï¿œn and Niklas Sï¿œrensson. | |
8 | * Proceedings of the Sixth International Conference on Theory | |
9 | * and Applications of Satisfiability Testing, LNCS 2919, | |
10 | * pp 502-518, 2003. | |
11 | * | |
12 | * This library is free software; you can redistribute it and/or | |
13 | * modify it under the terms of the GNU Lesser General Public | |
14 | * License as published by the Free Software Foundation; either | |
15 | * version 2.1 of the License, or (at your option) any later version. | |
16 | * | |
17 | * This library is distributed in the hope that it will be useful, | |
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
20 | * Lesser General Public License for more details. | |
21 | * | |
22 | * You should have received a copy of the GNU Lesser General Public | |
23 | * License along with this library; if not, write to the Free Software | |
24 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
25 | * | |
26 | */ | |
27 | ||
28 | package org.sat4j.specs; | |
29 | ||
30 | /* | |
31 | * Created on 15 nov. 2003 | |
32 | */ | |
33 | ||
34 | /** | |
35 | * That exception is launched whenever a trivial contradiction | |
36 | * is found (e.g. null clause). | |
37 | * | |
38 | * @author leberre | |
39 | */ | |
40 | public class ContradictionException extends Exception { | |
41 | ||
42 | private static final long serialVersionUID = 1L; | |
43 | ||
44 | /** | |
45 | * | |
46 | */ | |
47 | 55 | public ContradictionException() { |
48 | 55 | super(); |
49 | } | |
50 | ||
51 | /** | |
52 | * @param message | |
53 | * un message | |
54 | */ | |
55 | 43 | public ContradictionException(final String message) { |
56 | 43 | super(message); |
57 | } | |
58 | ||
59 | /** | |
60 | * @param cause | |
61 | * la cause de l'exception | |
62 | */ | |
63 | 0 | public ContradictionException(final Throwable cause) { |
64 | 0 | super(cause); |
65 | } | |
66 | ||
67 | /** | |
68 | * @param message | |
69 | * un message | |
70 | * @param cause | |
71 | * une cause | |
72 | */ | |
73 | 0 | public ContradictionException(final String message, final Throwable cause) { |
74 | 0 | super(message, cause); |
75 | } | |
76 | ||
77 | } |
|