package quick.exceptions; import quick.View; public class InvalidRedirect extends RuntimeException { public InvalidRedirect(Class target) { super(target == null ? "invalid use of null in redirect" : "View" + target.getName() + " is not registered in base"); } }