mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-25 22:36:02 +03:00
29 lines
458 B
PHP
29 lines
458 B
PHP
<?php
|
|
namespace GraphQL\Error;
|
|
|
|
/**
|
|
* Class UserError
|
|
*
|
|
* Error caused by actions of GraphQL clients. Can be safely displayed to a client...
|
|
*
|
|
* @package GraphQL\Error
|
|
*/
|
|
class UserError extends \RuntimeException implements ClientAware
|
|
{
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function isClientSafe()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getCategory()
|
|
{
|
|
return 'user';
|
|
}
|
|
}
|