public class ExceptionInterfaceBinding extends Object implements InterfaceBinding<ExceptionInterface>
ExceptionInterface to a JSON stream.| Constructor and Description |
|---|
ExceptionInterfaceBinding(InterfaceBinding<StackTraceInterface> stackTraceInterfaceBinding)
Creates a Binding system to send a
ExceptionInterface on JSON stream. |
| Modifier and Type | Method and Description |
|---|---|
void |
writeInterface(com.fasterxml.jackson.core.JsonGenerator generator,
ExceptionInterface exceptionInterface)
Encodes the content of a sentry interface into a JSON stream.
|
public ExceptionInterfaceBinding(InterfaceBinding<StackTraceInterface> stackTraceInterfaceBinding)
ExceptionInterface on JSON stream.
Exceptions may contain StackTraces, this means that the system should also be able to send a
StackTraceInterface on the JSON stream.
stackTraceInterfaceBinding - InterfaceBinding allowing to send a StackTraceInterface on the JSON
stream.public void writeInterface(com.fasterxml.jackson.core.JsonGenerator generator,
ExceptionInterface exceptionInterface)
throws IOException
InterfaceBindingwriteInterface in interface InterfaceBinding<ExceptionInterface>generator - JSON generator allowing to write JSON content.exceptionInterface - interface to encode.IOException - thrown in case of failure during the generation of JSON content.Copyright © 2012–2017. All rights reserved.