View on
MetaCPAN
Ed J > GraphQL-0.13 > GraphQL::Error

Download:
GraphQL-0.13.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source   Latest Release: GraphQL-0.16

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.

syntax highlighting: