You are here

protected function S3fsStreamWrapper::_trigger_error in S3 File System 7.3

Same name and namespace in other branches
  1. 7 S3fsStreamWrapper.inc \S3fsStreamWrapper::_trigger_error()
  2. 7.2 S3fsStreamWrapper.inc \S3fsStreamWrapper::_trigger_error()

Triggers one or more errors.

Parameters

string|array $errors: Errors to trigger.

mixed $flags: If set to STREAM_URL_STAT_QUIET, no error or exception is triggered.

Return value

bool Always returns FALSE.

Throws

RuntimeException If the 'throw_exceptions' option is TRUE.

1 call to S3fsStreamWrapper::_trigger_error()
S3fsStreamWrapper::_s3fs_get_object in ./S3fsStreamWrapper.inc
Try to fetch an object from the metadata cache.

File

./S3fsStreamWrapper.inc, line 1230
Drupal stream wrapper implementation for S3 File System.

Class

S3fsStreamWrapper
The stream wrapper class.

Code

protected function _trigger_error($errors, $flags = NULL) {
  if ($flags != STREAM_URL_STAT_QUIET) {
    trigger_error(implode("\n", (array) $errors), E_USER_ERROR);
  }
  $this->_error_state = TRUE;
  return FALSE;
}