code: public void setErrorDetails(java.util.Collection<ErrorDetail> errorDetails) {
          if (errorDetails == null) {
              this.errorDetails = null;
              return;
          }
  
          this.errorDetails = new java.util.ArrayList<ErrorDetail>(errorDetails);
      }
docs: Error details
  
  @param errorDetails
  Error details