Package play.api

Class PlayException.ExceptionSource

All Implemented Interfaces:
Serializable
Enclosing class:
PlayException

public abstract static class PlayException.ExceptionSource extends PlayException
Adds source attachment to a Play exception.
See Also:
  • Constructor Details

    • ExceptionSource

      public ExceptionSource(String title, String description, Throwable cause)
    • ExceptionSource

      public ExceptionSource(String title, String description)
  • Method Details

    • line

      public abstract Integer line()
      Error line number, if defined.
      Returns:
      Error line number, if defined.
    • position

      public abstract Integer position()
      Column position, if defined.
      Returns:
      Column position, if defined.
    • input

      public abstract String input()
      Returns:
      Input stream used to read the source content.

      Input stream used to read the source content.

    • sourceName

      public abstract String sourceName()
      The source file name if defined.
      Returns:
      The source file name if defined.
    • interestingLines

      public PlayException.InterestingLines interestingLines(int border)
      Extracts interesting lines to be displayed to the user.
      Parameters:
      border - number of lines to use as a border
      Returns:
      the extracted lines
    • toString

      public String toString()
      Overrides:
      toString in class UsefulException