public class DiagnosticErrorRenderer
extends java.lang.Object
DiagnosticError
instances as
a Result. Does not rely on any 3rd party rendering library to permit
rendering exceptions in the case where a template engine fails!Modifier and Type | Method and Description |
---|---|
static DiagnosticErrorRenderer |
build(Context context,
Result result,
DiagnosticError diagnosticError) |
java.lang.String |
render() |
void |
renderResult(Context context,
Result result) |
static void |
tryToRender(Context context,
Result result,
DiagnosticError diagnosticError,
boolean throwInternalServerExceptionOnError) |
public java.lang.String render()
public static void tryToRender(Context context, Result result, DiagnosticError diagnosticError, boolean throwInternalServerExceptionOnError)
public void renderResult(Context context, Result result) throws java.io.IOException
java.io.IOException
public static DiagnosticErrorRenderer build(Context context, Result result, DiagnosticError diagnosticError) throws java.io.IOException
java.io.IOException
Copyright © 2016 ninjaframework. All Rights Reserved.