blob: be068d93019cb1e03684efd4d4d0859b010fa40c [file] [log] [blame]
// Copyright (c) 2016, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.errors;
/**
* Exception to signal an unexpected state internally to the compiler.
*
* <p>Exceptions of this type always represent an bug in the compiler.
*
* <p>For expected errors, such as invalid input, the compiler should generate a CompilationError.
*
* <p>For internal recoverable exceptions (eg, control operators) this base should not be used.
*/
public class InternalCompilerError extends IllegalStateException {
public InternalCompilerError() {
}
public InternalCompilerError(String message) {
super(message);
}
public InternalCompilerError(String message, Throwable cause) {
super(message, cause);
}
public InternalCompilerError(Throwable cause) {
super(cause);
}
}