Skip to content

Conversation

@bbakerman
Copy link
Member

This makes it a smidger error to make errors

@bbakerman bbakerman added this to the 20.0 milestone Nov 9, 2022
@bbakerman
Copy link
Member Author

I picked up this pattern from the Spring code base and I really like it

That is for an FooInterface there is a FooBuilder that can be access via a newFoo() static method on the interface

return errorType;
}
};
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found myself having to make custom error classification recently and while and enum works, a string is just as good

        GraphQLError err = GraphQLError.newError()
                .message("direct")
                .errorType(ErrorClassification.of("oneOffClassification"))
                .build();

@andimarek
Copy link
Member

@bbakerman the build fails here

@bbakerman bbakerman merged commit df2a717 into master Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants