GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
GraphQL::Error(3) User Contributed Perl Documentation GraphQL::Error(3)

GraphQL::Error - GraphQL error object

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

Class implementing GraphQL error object.

If there is an original error to be preserved.

Array-ref of "DocumentLocation" in GraphQL::Type::Librarys.

Array-ref of "StrNameValid" in GraphQL::Type::Librarys or "Int"s describing the path from the top operation (being either fields, or a List offset).

Hash-ref of "JSONable" in GraphQL::Type::Librarys providing additional information.

Is the supplied scalar an error object?

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".

Returns a copy of the error object, but with the given properties (as with a "new" method, not coincidentally) overriding the existing ones.

Converts to string.

Converts to a JSON-able hash, in the format to send back as a member of the "errors" array in the results.
2021-07-04 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.