Class DiagnosticError

  • All Implemented Interfaces:
    Renderable

    public class DiagnosticError
    extends Object
    implements Renderable
    Represents an application error/exception that includes extra information in order to diagnose it. Knows how to render itself as the renderable inside a Result.
    Author:
    Joe Lauer (https://twitter.com/jjlauer), Fizzed, Inc. (http://fizzed.com)
    • Constructor Detail

      • DiagnosticError

        public DiagnosticError​(String title,
                               Throwable throwable,
                               Result underlyingResult)
      • DiagnosticError

        public DiagnosticError​(String title,
                               Throwable throwable,
                               URI sourceLocation,
                               List<String> sourceLines,
                               int lineNumberOfSourceLines,
                               int lineNumberOfError,
                               Result underlyingResult)
    • Method Detail

      • getTitle

        public String getTitle()
      • getThrowable

        public Throwable getThrowable()
      • getSourceLocation

        public URI getSourceLocation()
      • getSourceLines

        public List<String> getSourceLines()
      • getLineNumberOfSourceLines

        public int getLineNumberOfSourceLines()
      • getLineNumberOfError

        public int getLineNumberOfError()
      • getUnderlyingResult

        public Result getUnderlyingResult()