HM\BackUpWordPress\Backup_Engine::error PHP Method

error() public method

An error is always treat as fatal and should only be used for unrecoverable issues with the backup process.
public error ( string $context, string $error )
$context string The context for the error.
$error string The error that was encountered.
    public function error($context, $error)
    {
        if (empty($context) || empty($error)) {
            return;
        }
        // Ensure we don't store duplicate errors by md5'ing the error as the key
        $this->errors[$context][md5(implode(':', (array) $error))] = $error;
    }