環境情報(設定を含む)を検証する
@ignore
@return string Error message.
770397
private function check_env(){
		if( !is_file($this->config->path_definition_file) ){
			return 'Table definition file is NOT a file (or NOT exists).';
		}
		if( !is_readable($this->config->path_definition_file) ){
			return 'Table definition file is NOT readable.';
		}

		if( !is_dir($this->config->path_cache_dir) ){
			return 'path_cache_dir is NOT a directory (or NOT exists).';
		}
		if( !is_readable($this->config->path_definition_file) ){
			return 'path_cache_dir is NOT readable.';
		}
		if( !is_writable($this->config->path_definition_file) ){
			return 'path_cache_dir is NOT writable.';
		}
		return null;
	}
15368
public function getString()
    {
        $html = '';
        if ($this->error->has()) {
            $html .= '<ul class="ccm-error">';
            foreach ($this->error->getList() as $error) {
                $html .= '<li>';
                if ($error instanceof HtmlAwareErrorInterface && $error->messageContainsHtml()) {
                    $html .= (string) $error;
                } else {
                    $html .= nl2br(h((string) $error));
                }
                $html .= '</li>';
            }
            $html .= '</ul>';
        }

        return $html;
    }
224865
public function format()
    {
        if ($this->getMessage() == '' || !$this->getMessage()) {
            return '';
        }

        if (count($this->bindings) > 0) {
            foreach ($this->bindings as $token => $value) {
                $this->message = str_replace($this->delimiter . $token, $value, $this->message);
            }
        }

        return $this->message;
    }
93433
public java.lang.String getErrorMessage() {
    java.lang.Object ref = errorMessage_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (bs.isValidUtf8()) {
        errorMessage_ = s;
      }
      return s;
    }
  }
85407
public function getExceptionMessage()
    {
        $message = '';
        if (($e = $this->getException()) !== null) {
            $message = $e->getCode() . ': ' . $e->getMessage();
            $message = $this->t('message_exception') . ' ' . $message;
        }
        return $message;
    }
744238
public function getFailureMessage()
    {
        $message = '';
        if ($this->isFound === false && $this->isReadable === false) {
            $message  = 'Configuration file';
            if ($this->filename) {
                $message  .= ' "%s"';
            }

            $message .= ' was not found. ';
            $message .= 'Please provide the correct path or all settings via command options.';

        } elseif ($this->isFound === true && $this->isReadable === false) {
            $message  = 'Configuration file "%s" was found, but is not readable. ';
            $message .= 'Please change ownerships or all settings via command options.';
        }

        $message = sprintf($message, $this->filename);

        return $message;
    }
695640
public function getMessage()
    {
        $message = null;

        if (isset($this->data->transactionResponse->messages)) {
            // In case of a successful transaction, a "messages" element is present
            $message = (string)$this->data->transactionResponse->messages->message->description;
        } elseif (isset($this->data->transactionResponse->errors)) {
            // In case of an unsuccessful transaction, an "errors" element is present
            $message = (string)$this->data->transactionResponse->errors->error->errorText;
        } elseif (isset($this->data->messages->message)) {
            // In case of invalid request, the top-level message provides details.
            $message = (string)$this->data->messages->message->text;
        }

        return $message;
    }
765154
private function getLastXMLErrorMessage()
    {
        $errorMessage = null;
        $error = libxml_get_last_error();

        if ($error !== false) {
            $errorMessage = trim($error->message);
        }

        return $errorMessage;
    }
555629
public function getMessage() : ?string 
    {
        if ( ! $this->hasMessage()) {
            $this->setMessage($this->getDefaultMessage());
        }
        return $this->message;
    }
742529
public function getErrorMessage(): string
	{
		switch($this->errorCode)
		{
			case UPLOAD_ERR_OK:
				return 'There is no error, the file was successfully uploaded.';
			case UPLOAD_ERR_INI_SIZE:
				return 'The uploaded file exceeds the upload_max_filesize directive in php.ini.';
			case UPLOAD_ERR_FORM_SIZE:
				return 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.';
			case UPLOAD_ERR_PARTIAL:
				return 'The uploaded file was only partially uploaded.';
			case UPLOAD_ERR_NO_FILE:
				return 'No file was uploaded.';
			case UPLOAD_ERR_NO_TMP_DIR:
				return 'Missing a temporary folder.';
			case UPLOAD_ERR_CANT_WRITE:
				return 'Failed to write file to disk.';
			case UPLOAD_ERR_EXTENSION:
				return 'A PHP extension stopped the file upload.';
			default:
				return 'Unknown upload error.';
		}
	}
994223
public function getErrorMessage()
    {
        $messages = array();
        foreach ($this->errors as $error) {
            if (isset($this->errorMessages[$error])) {
                $messages[] = $this->errorMessages[$error];
            } else{
                $messages[] = $error;
            }
        }

        return implode(' ', $messages);
    }
631927
public function excuse() {
        $search = ['%TABLE%', '%WHERE%', '%ORDER%', '%LIMIT%', '%LOCK%', '%COMMENT%'];
        $sql = str_replace($search, [$this->table,
                                     $this->whereSql(),
                                     $this->order,
                                     $this->limit,
                                     $this->lock,
                                     $this->comment,], $this->deleteSql);
        $connection = Pool::get(Connection::class);
        try {
            $connection->execute($sql, $this->whereParams());
            $count = $connection->rowCount();
            Pool::release($connection);
            return $count;
        } catch (\RuntimeException $e) {
            Pool::release($connection);
            throw $e;
        } catch (\Error $e) {
            Pool::release($connection);
            throw $e;
        }
    }
452936
protected function getValueLength()
    {
        if ($this->maxlength_ignored_characters != '') {
            $chars = preg_quote($this->maxlength_ignored_characters, '/');
            $pattern = sprintf('/[%s]/u', $chars);
            $value = preg_replace($pattern, '', $this->value);
            $length = mb_strlen($value);
        } else {
            $length = mb_strlen($this->value);
        }
        return $length;
    }
1109859
public function error() {
        if($this->PDOStatement) {
            $error = $this->PDOStatement->errorInfo();
            $this->error = $error[1].':'.$error[2];
        }else{
            $this->error = '';
        }
        if('' != $this->queryStr){
            $this->error .= "\n [ SQL语句 ] : ".$this->queryStr;
        }
        // 记录错误日志
        trace($this->error,'','ERR');
        if($this->config['debug']) {// 开启数据库调试模式
            E($this->error);
        }else{
            return $this->error;
        }
    }
629577
private function _getMessage() {
		set_error_handler(array(
			$this,
			'_messageErrorHandler'
		), E_ALL);

		$args = func_get_args();
		if (isset($this->messages[$args[0]])) {
			$msg = $this->messages[$args[0]];

			try {
				array_shift($args);
				$formattedMsg = vsprintf($msg, $args);
			} catch (Exception $e) {
				$formattedMsg = $msg;
			}

			set_error_handler(array(
				$this,
				'customErrorHandler'
			), E_ALL);

			return $formattedMsg;
		}

		return FALSE;
	}
1281223
public function getErrorMessage()
    {
        $message = $this->getDebugMessage();
        $message .= '<font color="red">ERROR START</font><br>';
        foreach ($this->errorMessage as $items) {
            $message .= "-----------------------------------------------------------------------------------<br>";
            if (is_array($items) || is_object($items)) {
                $message .= "<pre>";
                $message .= $items;
                $message .= "</pre>";
            } elseif (!is_array($items) && !is_object($items)) {
                $message .= $items . '<br/>';
            }
            $message .= "-----------------------------------------------------------------------------------<br>";
        }
        $message .= '<font color="red">ERROR END</font><br>';
        iconv(mb_detect_encoding($message, mb_detect_order(), true), "UTF-8", $message);
        return $message;
    }
843958
protected function getIgnore()
    {
        if (!empty($this->config['tables'])) {
            return '';
        }
        $ignoreTables = array_merge($this->config['structureTables'], $this->config['ignoreTables']);
        // Append the ignore-table options.
        $ignoreArgs = [];
        foreach ($ignoreTables as $table) {
            $ignoreArgs[] = escapeshellarg($this->config['database'] . '.' . $table);
        }
        array_unshift($ignoreArgs, str_repeat(' --ignore-table=%s', count($ignoreArgs)));
        return trim(call_user_func_array('sprintf', $ignoreArgs));
    }