Package ninja.diagnostics
Class DiagnosticError
- java.lang.Object
-
- ninja.diagnostics.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 aResult.- Author:
- Joe Lauer (https://twitter.com/jjlauer), Fizzed, Inc. (http://fizzed.com)
-
-
Constructor Summary
Constructors Constructor Description DiagnosticError(String title, Throwable throwable, URI sourceLocation, List<String> sourceLines, int lineNumberOfSourceLines, int lineNumberOfError, Result underlyingResult)DiagnosticError(String title, Throwable throwable, Result underlyingResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLineNumberOfError()intgetLineNumberOfSourceLines()List<String>getSourceLines()URIgetSourceLocation()ThrowablegetThrowable()StringgetTitle()ResultgetUnderlyingResult()voidrender(Context context, Result result)
-
-
-
Method Detail
-
getTitle
public String getTitle()
-
getThrowable
public Throwable getThrowable()
-
getSourceLocation
public URI getSourceLocation()
-
getLineNumberOfSourceLines
public int getLineNumberOfSourceLines()
-
getLineNumberOfError
public int getLineNumberOfError()
-
getUnderlyingResult
public Result getUnderlyingResult()
-
render
public void render(Context context, Result result)
- Specified by:
renderin interfaceRenderable
-
-