File ManagerCurrent Directory: wp-content/plugins/backwpup/vendor/aws/aws-sdk-php/src/EndpointV2/RuleLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: ErrorRule.php <?php namespace Aws\EndpointV2\Rule; use Aws\EndpointV2\Ruleset\RulesetStandardLibrary; use Aws\Exception\UnresolvedEndpointException; class ErrorRule extends AbstractRule { /** @var array */ private $error; public function __construct($definition) { parent::__construct($definition); $this->error = $definition['error']; } /** * @return array */ public function getError() { return $this->error; } /** * If an error rule's conditions are met, raise an * UnresolvedEndpointError containing the fully resolved error string. * * @return null * @throws UnresolvedEndpointException */ public function evaluate( array $inputParameters, RulesetStandardLibrary $standardLibrary ) { if ($this->evaluateConditions($inputParameters, $standardLibrary)) { $message = $standardLibrary->resolveValue($this->error, $inputParameters); throw new UnresolvedEndpointException($message); } return false; } } Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)DirAbstractRule.phpFile1.41 KB Rename | Delete | EditEndpointRule.phpFile3.28 KB Rename | Delete | EditErrorRule.phpFile1.05 KB Rename | Delete | EditRuleCreator.phpFile661.00 B Rename | Delete | EditTreeRule.phpFile1.53 KB Rename | Delete | Edit