Reference
C
Class

ApiPlatform\GraphQl\Error\ErrorHandler

Handles the errors thrown by the GraphQL library by applying the formatter to them (default behavior).

class ApiPlatform\GraphQl\Error\ErrorHandler implements `<a href="/docs/reference/GraphQl/Error/ErrorHandlerInterface">ApiPlatform\GraphQl\Error\ErrorHandlerInterface</a>`
{
    public __invoke(array $errors, callable $formatter): array
}
class ApiPlatform\GraphQl\Error\ErrorHandler implements `<a href="/docs/reference/GraphQl/Error/ErrorHandlerInterface">ApiPlatform\GraphQl\Error\ErrorHandlerInterface</a>`
{
    public __invoke(array $errors, callable $formatter): array
}

Methods

__invoke

public __invoke(array $errors, callable $formatter): array
public __invoke(array $errors, callable $formatter): array

Parameters

errorsarray
formattercallable

Returns

array

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop