src/main/java/com/arpnetworking/logback/serialization/steno/StenoSerializationHelper.java
public static void writeThrowable(
            final IThrowableProxy throwableProxy,
            final JsonGenerator jsonGenerator,
            final ObjectMapper objectMapper)
            throws IOException {

        if (throwableProxy != null) {
            jsonGenerator.writeObjectFieldStart("exception");
            serializeThrowable(throwableProxy, jsonGenerator, objectMapper);
            jsonGenerator.writeEndObject();
        }
    }
public static void writeThrowable(
            final IThrowableProxy throwableProxy,
            final JsonGenerator jsonGenerator,
            final ObjectMapper objectMapper)
            throws IOException {

        if (throwableProxy != null) {
            jsonGenerator.writeObjectFieldStart("exception");
            serializeThrowable(throwableProxy, jsonGenerator, objectMapper);
            jsonGenerator.writeEndObject();
        }
    }
public static void writeThrowable ( final IThrowableProxy throwableProxy , final JsonGenerator jsonGenerator , final ObjectMapper objectMapper ) throws IOException { if ( throwableProxy != null ) { jsonGenerator . writeObjectFieldStart ( "exception" ) ; serializeThrowable ( throwableProxy , jsonGenerator , objectMapper ) ; jsonGenerator . writeEndObject ( ) ; } }
Write a <code>Throwable</code> via <code>IThrowableProxy</code> as JSON.

@since 1.7.0
@param throwableProxy Throwable to serialize
@param jsonGenerator  <code>JsonGenerator</code> instance.
@param objectMapper <code>ObjectMapper</code> instance.
@throws IOException If writing JSON fails.
Write a <code > Throwable< / code > via <code > IThrowableProxy< / code > as JSON .