use of org.spongepowered.asm.util.ConstraintParser.Constraint in project SpongeForge by SpongePowered.
the class MixinErrorHandler method getPrettyPrinter.
public PrettyPrinter getPrettyPrinter(Throwable th) {
if (th.getCause() instanceof ConstraintViolationException) {
ConstraintViolationException ex = (ConstraintViolationException) th.getCause();
Constraint constraint = ex.getConstraint();
if ("FORGE".equals(constraint.getToken())) {
return this.forgeVersionNotValid(constraint);
}
return this.patchConstraintFailed(constraint, ex);
} else if (th instanceof MixinTargetAlreadyLoadedException) {
return this.badCoreMod((MixinTargetAlreadyLoadedException) th);
}
return this.itsAllGoneHorriblyWrong();
}
Aggregations