on 2024 Dec 03 3:37 AM
Hi experts,
I'm working with RAP using custom entity, for this reason the interface if_rap_query_provider is part of development.
I'm using the 'select' method and need to do some validations before the mainly select and return error if that's the case. I've implemented Andre Fisher Solution, which covers exceptions, however not error, is there any other way to handle it or change status code in this exception? because it always returns 500 by framework.
Many thanks 🙂
Request clarification before answering.
There is currently no possibility to influence the response code. The exception provided by in the interface is the only way to abort the execution, leading to an HTTP 500. The message encapsulated in the error is however coming from the exception text raised by your implementation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 14 | |
| 8 | |
| 6 | |
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.