This commit is contained in:
Kilian Hofmann
2021-06-01 19:55:55 +02:00
parent 052cbe3038
commit d8c489c714
328 changed files with 36645 additions and 0 deletions
@@ -0,0 +1,22 @@
<?php
namespace Nuwave\Lighthouse\Exceptions;
use GraphQL\Error\ClientAware;
/**
* Exceptions may implement this interface.
*
* This enables them to render additional content to the errors
* entry that is returned to the client when it occurs.
*/
interface RendersErrorsExtensions extends ClientAware
{
/**
* Return the content that is put in the "extensions" part
* of the returned error.
*
* @return array
*/
public function extensionsContent(): array;
}