All Downloads are FREE. Search and download functionalities are using the official Maven repository.

proguard.evaluation.exception.StackGeneralizationException Maven / Gradle / Ivy

Go to download

ProGuardCORE is a free library to read, analyze, modify, and write Java class files.

There is a newer version: 9.1.6
Show newest version
package proguard.evaluation.exception;

import proguard.classfile.Clazz;
import proguard.classfile.Method;
import proguard.evaluation.TracedStack;
import proguard.exception.ErrorId;

public class StackGeneralizationException extends PartialEvaluatorException {
  private final TracedStack first;
  private final TracedStack second;

  @Deprecated
  public StackGeneralizationException(Throwable cause, TracedStack first, TracedStack second) {
    this(null, null, cause, first, second);
  }

  public StackGeneralizationException(
      Clazz clazz, Method method, Throwable cause, TracedStack first, TracedStack second) {
    super(
        ErrorId.STACK_GENERALIZATION,
        cause,
        clazz,
        method,
        "Could not generalize stacks %s and %s because: \"%s\".",
        first.toString(),
        second.toString(),
        cause.getMessage());
    this.first = first;
    this.second = second;
  }

  public TracedStack getFirst() {
    return first;
  }

  public TracedStack getSecond() {
    return second;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy