KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > compiler > problem > AbortCompilationUnit


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 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.compiler.problem;
12
13 import java.io.IOException JavaDoc;
14
15 import org.eclipse.jdt.core.compiler.CategorizedProblem;
16 import org.eclipse.jdt.internal.compiler.CompilationResult;
17
18 /*
19  * Special unchecked exception type used
20  * to abort from the compilation process
21  *
22  * should only be thrown from within problem handlers.
23  */

24 public class AbortCompilationUnit extends AbortCompilation {
25
26     private static final long serialVersionUID = -4253893529982226734L; // backward compatible
27

28     public String JavaDoc encoding;
29     
30 public AbortCompilationUnit(CompilationResult compilationResult, CategorizedProblem problem) {
31     super(compilationResult, problem);
32 }
33
34 /**
35  * Used to surface encoding issues when reading sources
36  */

37 public AbortCompilationUnit(CompilationResult compilationResult, IOException JavaDoc exception, String JavaDoc encoding) {
38     super(compilationResult, exception);
39     this.encoding = encoding;
40 }
41 }
42
Popular Tags