| 1 | /* |
|---|
| 2 | * Copyright (c) 2006, Wygwam |
|---|
| 3 | * All rights reserved. |
|---|
| 4 | * |
|---|
| 5 | * Redistribution and use in source and binary forms, with or without modification, |
|---|
| 6 | * are permitted provided that the following conditions are met: |
|---|
| 7 | * |
|---|
| 8 | * - Redistributions of source code must retain the above copyright notice, |
|---|
| 9 | * this list of conditions and the following disclaimer. |
|---|
| 10 | * - Redistributions in binary form must reproduce the above copyright notice, |
|---|
| 11 | * this list of conditions and the following disclaimer in the documentation and/or |
|---|
| 12 | * other materials provided with the distribution. |
|---|
| 13 | * - Neither the name of Wygwam nor the names of its contributors may be |
|---|
| 14 | * used to endorse or promote products derived from this software without |
|---|
| 15 | * specific prior written permission. |
|---|
| 16 | * |
|---|
| 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY |
|---|
| 18 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
|---|
| 19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
|---|
| 20 | * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
|---|
| 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
|---|
| 22 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
|---|
| 23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
|---|
| 24 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
|---|
| 25 | * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|---|
| 26 | */ |
|---|
| 27 | |
|---|
| 28 | package org.docx4j.openpackaging.exceptions; |
|---|
| 29 | |
|---|
| 30 | /** |
|---|
| 31 | * Global exception throws when a critical error occurs. (this exception is not |
|---|
| 32 | * set as Runtime in order to force user to manage the exception in a |
|---|
| 33 | * try/catch). |
|---|
| 34 | * |
|---|
| 35 | * @author CDubettier, Julien Chable |
|---|
| 36 | * @version 1.0 |
|---|
| 37 | */ |
|---|
| 38 | @SuppressWarnings("serial") |
|---|
| 39 | public class Docx4JException extends Exception { |
|---|
| 40 | |
|---|
| 41 | public Docx4JException(String msg) { |
|---|
| 42 | super(msg); |
|---|
| 43 | } |
|---|
| 44 | |
|---|
| 45 | public Docx4JException(String msg, Exception e) { |
|---|
| 46 | super(msg, e); |
|---|
| 47 | } |
|---|
| 48 | |
|---|
| 49 | public Docx4JException(String msg, Throwable t) { |
|---|
| 50 | super(msg, t); |
|---|
| 51 | } |
|---|
| 52 | |
|---|
| 53 | } |
|---|