++ed by:
HAMMER KFLY AERO AKIYM SKOLYCHEV

7 PAUSE users
3 non-PAUSE users.

Ed J

NAME

GraphQL::Error - GraphQL error object

SYNOPSIS

  use GraphQL::Error;
  die GraphQL::Error->new(message => 'Something is not right...');

DESCRIPTION

Class implementing GraphQL error object.

ATTRIBUTES

message

original_error

If there is an original error to be preserved.

METHODS

is

Is the supplied scalar an error object?

coerce

If supplied scalar is an error object, return. If not, return one with it as message. If an object, message will be stringified version of that, it will be preserved as original_error.

to_string

Converts to string.