Documentation

RequestError extends Exception
in package
implements ClientAware

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 error category. E.g. "validation" for your own validation errors.
isClientSafe()  : bool
Returns true when exception message is safe to be displayed to client

Methods

getCategory()

Returns string describing error category. E.g. "validation" for your own validation errors.

public getCategory() : string

Value "graphql" is reserved for errors produced by query parsing or validation, do not use it.

Return values
string

isClientSafe()

Returns true when exception message is safe to be displayed to client

public isClientSafe() : bool
Return values
bool

Search results