code: 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();
      }
docs: Outputs an exception with its StackTrace on a JSon stream.
  
  @param generator       JSonGenerator.
  @param sentryException Sentry exception with its associated {@link StackTraceInterface}.
  @throws IOException