code: func (f *Fpdf) SetError(err error) {
  	if f.err == nil && err != nil {
  		f.err = err
  	}
  }
docs: // SetError sets an error to halt PDF generation. This may facilitate error
  // handling by application. See also Ok(), Err() and Error().