code: public JsonSerializationException traceError( Object value, String message, JsonWriter writer ) {
          JsonSerializationException exception = traceError( value, message );
          traceWriterInfo( value, writer );
          return exception;
      }
docs: Trace an error with current writer state and returns a corresponding exception.
  
  @param value current value
  @param message error message
  @param writer current writer
  
  @return a {@link JsonSerializationException} with the given message