commit 9ef5733df5c35e4dbb8ecee24246a31d46c6ea50
parent 92f8e94155b8e8063e636e009dd06f3e03e45690
Author: MS <ms@taler.net>
Date: Mon, 30 Aug 2021 22:56:26 -1100
Using EBICS_PROCESSING_ERROR for "not implemented".
Returned as response to C52.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
@@ -467,6 +467,10 @@ private fun constructCamtResponse(type: Int, subscriber: EbicsSubscriberEntity):
} else Pair(parseDashedDate("1970-01-01"), LocalDateTime.now())
*/
+ if (type != 53) throw EbicsRequestError(
+ "[EBICS_PROCESSING_ERROR] C52 not implemented",
+ "091116"
+ )
/**
* FIXME: when this function throws an exception, it makes a JSON response being responded.
* That is bad, because here we're inside a Ebics handler and only XML should