KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > formatter > AbortFormatting


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.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 JavaDoc {
20
21     Throwable JavaDoc nestedException;
22     private static final long serialVersionUID = -5796507276311428526L; // backward compatible
23

24     public AbortFormatting(String JavaDoc message) {
25         super(message);
26     }
27     public AbortFormatting(Throwable JavaDoc nestedException) {
28         super(nestedException.getMessage());
29         this.nestedException = nestedException;
30     }
31 }
32
Popular Tags