-
Notifications
You must be signed in to change notification settings - Fork 682
Improve error message if store module doesn't support a well-known fragment interface #2342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
What's the exact difference between |
|
Does |
A fragment is an entire interface. I think |
Any reason for the move to |
Most exceptions happen indeed during repository creation. Some can happen when calling a repository method for a composition that wasn't configured properly. I'm not sure we can catch all failures early on. If we roll back runtime (invocation checks) for missing fragments/fragment implementations during repository method invocation, we could retain the concept of a creation exception. |
How about |
…agment interface. We now throw a RepositoryCreationException (or subclass) when a repository cannot be created due to a missing fragment, a fragment without implementation or if a well-known fragment is not supported by the repository factory. Throw QueryCreationException if QueryExecutorMethodInterceptor cannot resolve a RepositoryQuery. Closes #2341
…agment interface. We now throw a RepositoryCreationException (or subclass) when a repository cannot be created due to a missing fragment, a fragment without implementation or if a well-known fragment is not supported by the repository factory. Throw QueryCreationException if QueryExecutorMethodInterceptor cannot resolve a RepositoryQuery. Closes #2341 Original pull request: #2342.
That's merged now. |
…agment interface. We now throw a RepositoryCreationException (or subclass) when a repository cannot be created due to a missing fragment, a fragment without implementation or if a well-known fragment is not supported by the repository factory. Throw QueryCreationException if QueryExecutorMethodInterceptor cannot resolve a RepositoryQuery. Closes #2341 Original pull request: #2342.
We now throw a
RepositoryCreationException
(or subclass) when a repository cannot be created due to a missing fragment, a fragment without implementation or if a well-known fragment is not supported by the repository factory.Closes #2341