commit 0ebb94f89e3373533c2e21ff56272095ae12292d parent 9eb38df871680da503e2ddba8560dd1736829671 Author: MS <ms@taler.net> Date: Sat, 31 Dec 2022 09:53:50 +0100 comment Diffstat:
| M | sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt @@ -545,7 +545,12 @@ val sandboxApp: Application.() -> Unit = { ) ) } - // Happens when a request fails to parse. + /** + * Happens when a request fails to parse. This branch triggers + * only when a JSON request fails. XML problems are caught within + * the /ebicsweb handler and always ultimately rethrown as "EbicsRequestError", + * hence they do not reach this branch. + */ exception<BadRequestException> { call, wrapper -> var rootCause = wrapper.cause while (rootCause?.cause != null) rootCause = rootCause.cause