package coffee.liz.lambda.eval; import lombok.Getter; /** * Thrown before we get a {@link StackOverflowError}, hopefully. */ @Getter public final class EvaluationDepthExceededException extends RuntimeException { private final int maxDepth; public EvaluationDepthExceededException(final int maxDepth) { super("Evaluation exceeded maximum depth of " + maxDepth); this.maxDepth = maxDepth; } }