for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*******************************************************************************
* This file is part of the GraphQL Bundle package.
*
* (c) YnloUltratech <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
******************************************************************************/
namespace Ynlo\GraphQLBundle\Exception\GraphQL;
use Ynlo\GraphQLBundle\Definition\DefinitionInterface;
class ForbiddenObjectException extends SecurityException
{
public function __construct(DefinitionInterface $object, $message = null)
if (!$message) {
$message = sprintf(
'Does not have enough permissions to get this %s',
$object->getName()
);
}
parent::__construct($message);