Usually, Toast is only used for information & Success/Failure Messages from the server are always shown in MessageBox.
& for handling such scenarios I would rather send failure with a message from backend response & show it in a toast.
It seems by throwing an exception is being directly handled by framework.
Hi,
There is be a way to do that in UI5 code. There should be a ErrorHandler.js file in your project's webapp/controller folder.
Within that there are listeners for attachMetadataFailed and attachRequestFailed. The call for error message pop-up that you are getting must be within these methods. Once you are there, you could handle the errors differently and remove the pop-ups.
Hope this helps!
Add comment