private void writeException ( JsonGenerator generator , SentryException sentryException ) throws IOException { generator . writeStartObject ( ) ; generator . writeStringField ( TYPE_PARAMETER , sentryException . getExceptionClassName ( ) ) ; generator . writeStringField ( VALUE_PARAMETER , sentryException . getExceptionMessage ( ) ) ; generator . writeStringField ( MODULE_PARAMETER , sentryException . getExceptionPackageName ( ) ) ; generator . writeFieldName ( STACKTRACE_PARAMETER ) ; stackTraceInterfaceBinding . writeInterface ( generator , sentryException . getStackTraceInterface ( ) ) ; generator . writeEndObject ( ) ; }
Outputs an exception with its StackTrace on a JSon stream .