1 /* 2 * Copyright 2010-2013 smartics, Kronseder & Reiner GmbH 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package de.smartics.xml.encoding; 17 18 import org.xml.sax.SAXException; 19 20 /** 21 * Signals that the parsing should be aborted due to a content handler. 22 */ 23 public class AbortException extends SAXException 24 { 25 // ********************************* Fields ********************************* 26 27 // --- constants ------------------------------------------------------------ 28 29 /** 30 * The class version identifier. 31 * <p> 32 * The value of this constant is {@value}. 33 */ 34 private static final long serialVersionUID = 1L; 35 36 // --- members -------------------------------------------------------------- 37 38 // ****************************** Initializer ******************************* 39 40 // ****************************** Constructors ****************************** 41 42 /** 43 * Constructor. 44 * 45 * @see org.xml.sax.SAXException#SAXException() 46 */ 47 public AbortException() 48 { 49 } 50 51 /** 52 * Constructor. 53 * 54 * @param message The error or warning message. 55 * @see org.xml.sax.SAXException#SAXException(java.lang.String) 56 */ 57 public AbortException(final String message) 58 { 59 super(message); 60 } 61 62 /** 63 * Constructor. 64 * 65 * @param e The exception to be wrapped in a SAXException. 66 * @see org.xml.sax.SAXException#SAXException(java.lang.Exception) 67 */ 68 public AbortException(final Exception e) 69 { 70 super(e); 71 } 72 73 /** 74 * Constructor. 75 * 76 * @param message The detail message. 77 * @param e The exception to be wrapped in a SAXException. 78 * @see org.xml.sax.SAXException#SAXException(java.lang.String, 79 * java.lang.Exception) 80 */ 81 public AbortException(final String message, final Exception e) 82 { 83 super(message, e); 84 } 85 86 // ****************************** Inner Classes ***************************** 87 88 // ********************************* Methods ******************************** 89 90 // --- init ----------------------------------------------------------------- 91 92 // --- get&set -------------------------------------------------------------- 93 94 // --- business ------------------------------------------------------------- 95 96 // --- object basics -------------------------------------------------------- 97 98 }