Fork me on GitHub

PebbleException

In package com.mitchellbosecke.pebble.error

public exception PebbleException extends RuntimeException

Fields

protected final Integer lineNumber
protected final String filename
protected final String message

Constructors

public PebbleException(Throwable cause, String message)
Parameters:
  • Throwable cause
  • String message
public PebbleException(Throwable cause, String message, Integer lineNumber, String filename)
Parameters:
  • Throwable cause
  • String message
  • Integer lineNumber
  • String filename

Methods

public Integer getLineNumber()

Returns the line number on which the exception was thrown.

Parameters:
  • No parameters
public String getFileName()

Returns the filename in which the exception was thrown.

Parameters:
  • No parameters
public String getPebbleMessage()

Returns the message which is set for the exception by Pebble. Its the message which is not enhanced with the line number and filename.

Parameters:
  • No parameters