Refactory: remove unused classes, imports, fields and methods.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / formatter / AbortFormatting.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 International Business Machines Corp. and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0 
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  ******************************************************************************/
11 package net.sourceforge.phpdt.internal.formatter;
12
13 /**
14  * Unchecked exception wrapping invalid input checked exception which may occur
15  * when scanning original formatted source.
16  * 
17  * @since 2.1
18  */
19 public class AbortFormatting extends RuntimeException {
20
21         Throwable nestedException;
22
23         public AbortFormatting(String message) {
24                 super(message);
25         }
26
27         public AbortFormatting(Throwable nestedException) {
28                 super(nestedException.getMessage());
29                 this.nestedException = nestedException;
30         }
31 }