[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: Prefer EBICS_UNSUPPORTED_ORDER_TYPE fo
From: |
gnunet |
Subject: |
[libeufin] branch master updated: Prefer EBICS_UNSUPPORTED_ORDER_TYPE for "not implemented". |
Date: |
Tue, 31 Aug 2021 12:01:33 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 6073299 Prefer EBICS_UNSUPPORTED_ORDER_TYPE for "not implemented".
6073299 is described below
commit 6073299f1d75c0d91cee9fb2100ae45827c948ab
Author: MS <ms@taler.net>
AuthorDate: Mon Aug 30 23:01:07 2021 -1100
Prefer EBICS_UNSUPPORTED_ORDER_TYPE for "not implemented".
---
.../kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git
a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
index 548c298..d331129 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
@@ -98,7 +98,7 @@ private class EbicsInvalidXmlError : EbicsKeyManagementError(
"091010"
)
-private class EbicsInvalidOrderType : EbicsRequestError(
+private class EbicsUnsupportedOrderType : EbicsRequestError(
"[EBICS_UNSUPPORTED_ORDER_TYPE] Order type not supported",
"091005"
)
@@ -467,10 +467,7 @@ 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"
- )
+ if (type != 53) throw EbicsUnsupportedOrderType()
/**
* 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
@@ -630,10 +627,7 @@ private fun handleCct(paymentRequest: String) {
}
} catch (e: ExposedSQLException) {
logger.warn("Could not insert new payment into the database: ${e}")
- throw EbicsRequestError(
- "[EBICS_PROCESSING_ERROR] ${e.sqlState}",
- "091116"
- )
+ throw EbicsUnsupportedOrderType()
}
}
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: Prefer EBICS_UNSUPPORTED_ORDER_TYPE for "not implemented".,
gnunet <=