The ErrorType enum should be removed
See original GitHub issueI 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:
- Created 7 years ago
- Comments:5 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is a breaking change however. Anyone consuming this in their error handling be broken.
Semver says this must be a 3.x change
we will not remove the ErrorType: I think it is quite useful and as @tklovett pointed out it is spec conform.