2021-07-26 19:46:18 +02:00

32 lines
540 B
PHP

<?php
namespace Nuwave\Lighthouse\Exceptions;
use GraphQL\Error\Error;
class GenericException extends Error
{
protected $category = 'generic';
/**
* @param array<string, mixed> $extensions
* @return $this
*/
public function setExtensions(array $extensions): self
{
$this->extensions = $extensions;
return $this;
}
/**
* @return $this
*/
public function setCategory(string $category): self
{
$this->category = $category;
return $this;
}
}