question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The ErrorType enum should be removed

See original GitHub issue

I think the graphql.ErrorType enum can be removed, and along with it GraphQLError#gerErrorType(). I think these add needless complexity and are not part of the spec.

The only specified error properties are are

Every error must contain an entry with the key message with a string description of the error intended for the developer as a guide to understand and correct the error.

If an error can be associated to a particular point in the requested GraphQL document, it should contain an entry with the key locations with a list of locations, where each location is a map with the keys line and column, both positive numbers starting from 1 which describe the beginning of an associated syntax element.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bbakermancommented, Jan 30, 2017

This is a breaking change however. Anyone consuming this in their error handling be broken.

Semver says this must be a 3.x change

0reactions
andimarekcommented, Jul 10, 2017

we will not remove the ErrorType: I think it is quite useful and as @tklovett pointed out it is spec conform.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot remove Postgres ENUM - Stack Overflow
It looks like SQLAlchemy writes this type to the database with quotes (see the SQL in the error message). Try: DROP TYPE "ProcessState";....
Read more >
ErrorType enumeration (WebSvcAlerts) | Microsoft Learn
AccessDenied, Authenticated user is not authorized to delete the specified alert subscription. ServerError, Unspecified server error ...
Read more >
Enum ErrorType | PnP Core SDK
Syntax. public enum ErrorType : int. AzureADError. Authentication call to Azure AD failed ... This model instance was deleted, you can't use it...
Read more >
Item has enum - error message for Withdraw Items job
In such case, the item won't be deleted because an order exists. (Technically speaking, the item may have enumeration level "a" indicating ...
Read more >
<ErrorTypes.h> - Error Enums | ArcGIS Runtime API for Qt
This enum was introduced or modified in Esri::ArcGISRuntime 100.0. enum class ErrorType. The list of possible generic errors. The ErrorType can be one...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found