Example usage for org.eclipse.jdt.internal.compiler.problem AbortCompilationUnit AbortCompilationUnit

List of usage examples for org.eclipse.jdt.internal.compiler.problem AbortCompilationUnit AbortCompilationUnit

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.compiler.problem AbortCompilationUnit AbortCompilationUnit.

Prototype

public AbortCompilationUnit(CompilationResult compilationResult, CategorizedProblem problem) 

Source Link

Usage

From source file:org.eclipse.objectteams.otdt.internal.core.compiler.ast.AbstractMethodMappingDeclaration.java

License:Open Source License

public void abort(int abortLevel, CategorizedProblem problem) {
    switch (abortLevel) {
    case AbortCompilation:
        throw new AbortCompilation(this.compilationResult, problem);
    case AbortCompilationUnit:
        throw new AbortCompilationUnit(this.compilationResult, problem);
    case AbortType:
        throw new AbortType(this.compilationResult, problem);
    default://from   w  w  w.j a v  a  2  s. co m
        throw new AbortMethod(this.compilationResult, problem);
    }
}