Package play.api

Class PlayException.ExceptionSource

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    PlayException

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

      • ExceptionSource

        public ExceptionSource​(java.lang.String title,
                               java.lang.String description,
                               java.lang.Throwable cause)
      • ExceptionSource

        public ExceptionSource​(java.lang.String title,
                               java.lang.String description)
    • Method Detail

      • line

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

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

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

        Input stream used to read the source content.

      • sourceName

        public abstract java.lang.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