UserError
extends RuntimeException
in package
implements
ClientAware
Error caused by actions of GraphQL clients. Can be safely displayed to a client.
..
Interfaces, Classes, Traits and Enums
- ClientAware
- This interface is used for [default error formatting](error-handling.md).
Table of Contents
- getCategory() : string
- Returns string describing a category of the error.
- isClientSafe() : bool
- Returns true when exception message is safe to be displayed to a client.
Methods
getCategory()
Returns string describing a category of the error.
public
getCategory() : string
Return values
string —isClientSafe()
Returns true when exception message is safe to be displayed to a client.
public
isClientSafe() : bool