Sets the reason value for this DaiIngestError.

@param reason   * The error associated with the content.
169112
public void setReason(com.google.api.ads.admanager.axis.v201805.DaiIngestErrorReason reason) {
        this.reason = reason;
    }
1215966
public void setErrorMessage(String errorMessage) {

        m_errorMessage = errorMessage;
        m_errorLabel.setValue(errorMessage != null ? errorMessage : "");
    }
1272079
protected void onError(Action action, String reason) {
        Console.error(Console.CONSTANTS.lastActionError(), reason);
    }
1219964
public static void setupMessageBundle(Context context) {
    ResourceBundle bundle = ResourceBundle.getBundle("com.google.errorprone.errors");
    JavacMessages.instance(context).add(l -> bundle);
  }
586375
def reason(self, reason):
        
        if reason is None:
            raise ValueError("Invalid value for `reason`, must not be `None`")
        allowed_values = ["reservation", "reservation_release", "reservation_termination", "package_creation", "package_renewal", "package_termination"]
        if reason not in allowed_values:
            raise ValueError(
                "Invalid value for `reason` ({0}), must be one of {1}"
                .format(reason, allowed_values)
            )

        self._reason = reason
375208
public static <T> void assertThat(String reason, T value, Matcher<? super T> criteria) {
        MatcherAssert.assertThat(reason, value, criteria);
    }
1136963
public static void setCurrent(@Nullable String reason)
    {
        if (reason != null)
        {
            if (currentReason == null)
                currentReason = new ThreadLocal<>();
            currentReason.set(reason);
        }
        else if (currentReason != null)
        {
            currentReason.remove();
        }
    }
497409
public void setErrors(com.google.api.ads.admanager.axis.v201811.ApiError[] errors) {
        this.errors = errors;
    }
797866
public void setErrors(java.util.Collection<PartitionError> errors) {
        if (errors == null) {
            this.errors = null;
            return;
        }

        this.errors = new java.util.ArrayList<PartitionError>(errors);
    }
612436
public void setErrorDetails(java.util.Collection<ErrorDetail> errorDetails) {
        if (errorDetails == null) {
            this.errorDetails = null;
            return;
        }

        this.errorDetails = new java.util.ArrayList<ErrorDetail>(errorDetails);
    }
892422
def _get_error_reason(response):
        
        try:
            body = response.json()
            if body and 'reason' in body:
                return body['reason']
        except ValueError:
            pass
        return response.content
922769
@com.fasterxml.jackson.annotation.JsonProperty("ErrorCode")
    public void setEmrErrorCode(String emrErrorCode) {
        this.emrErrorCode = emrErrorCode;
    }
1234885
function(reason, element) {
		if (elements.length > 0) {
			var obj = elements.pop();
			element = element || obj.element;

			obj.error.call(element, reason);
			bigscreen.onerror(element, reason);
		}
	}
1197609
@Override
  public void cancel(final Status reason) {
    checkNotNull(reason, "reason");
    boolean delegateToRealStream = true;
    ClientStreamListener listenerToClose = null;
    synchronized (this) {
      // If realStream != null, then either setStream() or cancel() has been called
      if (realStream == null) {
        realStream = NoopClientStream.INSTANCE;
        delegateToRealStream = false;

        // If listener == null, then start() will later call listener with 'error'
        listenerToClose = listener;
        error = reason;
      }
    }
    if (delegateToRealStream) {
      delayOrExecute(new Runnable() {
        @Override
        public void run() {
          realStream.cancel(reason);
        }
      });
    } else {
      if (listenerToClose != null) {
        listenerToClose.closed(reason, new Metadata());
      }
      drainPendingCalls();
    }
  }
491435
def _raise_exception(cls, reason, data=None):
    
    text_dict = {
        "error": reason
    }

    if data is not None:
        text_dict["errors"] = data

    raise cls(
        text=json.dumps(text_dict),
        content_type="application/json"
    )
818209
public synchronized void onRequestFailed(Throwable reason) {
		executing.decrement();
		failed.increment();
		lastFailureReason = (reason == null) ? null : reason.getClass()
				.getName() + ": " + reason.getMessage();
	}
475506
public static void rethrow(final String message, final Exception reason)
   {
      if (reason == null)
      {
         throw new IllegalArgumentException();
      }

      Loggers.ROOT_LOGGER.error(message == null ? reason.getMessage() : message, reason);
      throw new InjectionException(message, reason);
   }