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

com.hubspot.jinjava.interpret.OutputTooBigException Maven / Gradle / Ivy

There is a newer version: 2.7.4
Show newest version
package com.hubspot.jinjava.interpret;

public class OutputTooBigException extends RuntimeException {
  private long maxSize;
  private final long size;

  public OutputTooBigException(long maxSize, long size) {
    this.maxSize = maxSize;
    this.size = size;
  }

  @Override
  public String getMessage() {
    return String.format(
      "%d byte output rendered, over limit of %d bytes",
      size,
      maxSize
    );
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy