PHP 8.2.31
Preview: AuthorizationException.php Size: 741 B
//proc/self/root/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/woocommerce/src/Api/AuthorizationException.php

<?php

declare(strict_types=1);

namespace Automattic\WooCommerce\Api;

/**
 * Thrown from an authorize() method to deny access with a custom error message.
 *
 * Uses a fixed UNAUTHORIZED error code and 401 status. The message defaults to
 * a generic denial but can be overridden for more specific feedback.
 */
class AuthorizationException extends ApiException {
	/**
	 * Constructor.
	 *
	 * @param string      $message  The error message.
	 * @param ?\Throwable $previous The previous throwable for chaining.
	 */
	public function __construct(
		string $message = 'You do not have permission to perform this action.',
		?\Throwable $previous = null,
	) {
		parent::__construct( $message, 'UNAUTHORIZED', array(), 401, $previous );
	}
}

Directory Contents

Dirs: 11 × Files: 3

Name Size Perms Modified Actions
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
Enums DIR
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
Mutations DIR
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
Queries DIR
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
Scalars DIR
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
Traits DIR
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
Types DIR
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
Utils DIR
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
1.21 KB lrw-r--r-- 2026-05-05 14:26:50
Edit Download
741 B lrw-r--r-- 2026-05-05 14:26:50
Edit Download
1.06 KB lrw-r--r-- 2026-05-05 14:26:50
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).