| 
  |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| ParseFormatException.java | - | 0% | 0% | 0% | 
             | 
  ||||||||||||||
| 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.reader; | |
| 29 | ||
| 30 | /** | |
| 31 | * Exception launched when there is a problem during parsing. | |
| 32 | * | |
| 33 | * @author leberre | |
| 34 | * @see Reader | |
| 35 | */ | |
| 36 | public class ParseFormatException extends Exception { | |
| 37 | ||
| 38 | private static final long serialVersionUID = 1L; | |
| 39 | ||
| 40 | /** | |
| 41 | * Constructor for ParseFormatException. | |
| 42 | */ | |
| 43 | 0 | public ParseFormatException() { | 
| 44 | 0 | super("DIMACS Format Error"); | 
| 45 | } | |
| 46 | ||
| 47 | /** | |
| 48 | * Constructor for ParseFormatException. | |
| 49 | * | |
| 50 | * @param message | |
| 51 | * the error message | |
| 52 | */ | |
| 53 | 0 | public ParseFormatException(String message) { | 
| 54 | 0 | super("DIMACS Format error: " + message); | 
| 55 | } | |
| 56 | ||
| 57 | /** | |
| 58 | * Constructor for ParseFormatException. | |
| 59 | * | |
| 60 | * @param message | |
| 61 | * the error message | |
| 62 | * @param cause | |
| 63 | * the cause of the exception | |
| 64 | */ | |
| 65 | 0 | public ParseFormatException(String message, Throwable cause) { | 
| 66 | 0 | super("DIMACS Format error: " + message, cause); | 
| 67 | } | |
| 68 | ||
| 69 | /** | |
| 70 | * Constructor for ParseFormatException. | |
| 71 | * | |
| 72 | * @param cause | |
| 73 | * the cause of the exception | |
| 74 | */ | |
| 75 | 0 | public ParseFormatException(Throwable cause) { | 
| 76 | 0 | super(cause); | 
| 77 | } | |
| 78 | ||
| 79 | } | 
  | 
||||||||||