generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Not possible to throw error while fetching entries #814
Comments
fetchEntries exist and is not recommended to be overriden for 99% of the scenarios :) GetInitialDataSet is used to prefill the overall data, so if you break in this one that's just the entire service breaking, which is usually not wanted. Can you check with an override to fetchEntries and if that's the case i'll adjust the documentation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not possible to throw error in getInitialDataSet
I'd like to throw an error when get entity set is called by application. My goal is to simulate error for different scenarios.
Documentation says:
The entity interface allow you then to access the standard function (addEntry, fetchEntries, ...) to manipulate the mockdata of the application.
But fetchEntries is not mentioned in any of the API documenatations.
I also can't throw an error in getInitialDataSet.
How can I achievie this for get entity set / get entity? Is there any hook or workaround?
Issue Type
The text was updated successfully, but these errors were encountered: