commercetools-8.x-1.2-alpha1/src/Exception/CommercetoolsGraphqlAccessException.php
src/Exception/CommercetoolsGraphqlAccessException.php
<?php
namespace Drupal\commercetools\Exception;
/**
* The exception on an unexpected error with a requests to commercetools API.
*/
class CommercetoolsGraphqlAccessException extends CommercetoolsOperationFailedException {
/**
* {@inheritdoc}
*/
public function __construct(?string $message = NULL, int $code = 0, ?\Throwable $previous = NULL) {
$message ??= "This type of GraphQL query is not allowed by the Drupal commercetools module configuration";
parent::__construct($message, $code, $previous);
}
}
