docs: public void marshall(Diagnostics diagnostics, ProtocolMarshaller protocolMarshaller) {
  
          if (diagnostics == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(diagnostics.getErrorCode(), ERRORCODE_BINDING);
              protocolMarshaller.marshall(diagnostics.getScriptName(), SCRIPTNAME_BINDING);
              protocolMarshaller.marshall(diagnostics.getMessage(), MESSAGE_BINDING);
              protocolMarshaller.marshall(diagnostics.getLogTail(), LOGTAIL_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }