public class DiagnosticErrorRenderer extends 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) |
String |
render() |
void |
renderResult(Context context,
Result result) |
static void |
tryToRender(Context context,
Result result,
DiagnosticError diagnosticError,
boolean throwInternalServerExceptionOnError) |
public String render()
public static void tryToRender(Context context, Result result, DiagnosticError diagnosticError, boolean throwInternalServerExceptionOnError)
public void renderResult(Context context, Result result) throws IOException
IOException
public static DiagnosticErrorRenderer build(Context context, Result result, DiagnosticError diagnosticError) throws IOException
IOException
Copyright © 2019 ninjaframework. All rights reserved.