__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?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;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| AbstractRule.php | File | 1.41 KB | 0777 |
|
| EndpointRule.php | File | 3.28 KB | 0777 |
|
| ErrorRule.php | File | 1.05 KB | 0777 |
|
| RuleCreator.php | File | 661 B | 0777 |
|
| TreeRule.php | File | 1.53 KB | 0777 |
|