gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: Killing myriad of error types.


From: gnunet
Subject: [libeufin] branch master updated: Killing myriad of error types.
Date: Mon, 09 Mar 2020 14:49:11 +0100

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new a2828b1  Killing myriad of error types.
a2828b1 is described below

commit a2828b1d729f3d73da997b963808e9d520d79e13
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Mar 9 14:48:53 2020 +0100

    Killing myriad of error types.
---
 nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt | 65 +----------------------
 1 file changed, 1 insertion(+), 64 deletions(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
index f4737c0..1cbeacf 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
@@ -320,69 +320,6 @@ fun main() {
                 call.respondText("Internal server error.\n", 
ContentType.Text.Plain, HttpStatusCode.InternalServerError)
             }
 
-            exception<NotAnIdError> { cause ->
-                logger.error("Exception while handling '${call.request.uri}'", 
cause)
-                call.respondText("Bad request\n", ContentType.Text.Plain, 
HttpStatusCode.BadRequest)
-            }
-
-            exception<BadBackup> { cause ->
-                logger.error("Exception while handling '${call.request.uri}'", 
cause)
-                call.respondText(
-                    "Bad backup, or passphrase incorrect\n",
-                    ContentType.Text.Plain,
-                    HttpStatusCode.BadRequest
-                )
-            }
-
-            exception<UnparsableResponse> { cause ->
-                logger.error("Exception while handling '${call.request.uri}'", 
cause)
-                call.respondText(
-                    "Could not parse bank response (${cause.message})\n", 
ContentType.Text.Plain, HttpStatusCode
-                        .InternalServerError
-                )
-            }
-
-            exception<UnreachableBankError> { cause ->
-                logger.error("Exception while handling '${call.request.uri}'", 
cause)
-                call.respondText(
-                    "Could not reach the bank\n",
-                    ContentType.Text.Plain,
-                    HttpStatusCode.InternalServerError
-                )
-            }
-
-            exception<SubscriberNotFoundError> { cause ->
-                logger.error("Exception while handling '${call.request.uri}'", 
cause)
-                call.respondText("Subscriber not found\n", 
ContentType.Text.Plain, HttpStatusCode.NotFound)
-            }
-
-            exception<BadSignature> { cause ->
-                logger.error("Exception while handling '${call.request.uri}'", 
cause)
-                call.respondText(
-                    "Signature verification unsuccessful\n",
-                    ContentType.Text.Plain,
-                    HttpStatusCode.NotAcceptable
-                )
-            }
-
-            exception<EbicsError> { cause ->
-                logger.error("Exception while handling '${call.request.uri}'", 
cause)
-                call.respondText(
-                    "Bank gave EBICS-error response\n",
-                    ContentType.Text.Plain,
-                    HttpStatusCode.NotAcceptable
-                )
-            }
-
-            exception<BankKeyMissing> { cause ->
-                logger.error("Exception while handling '${call.request.uri}'", 
cause)
-                call.respondText(
-                    "Impossible operation: get bank keys first\n",
-                    ContentType.Text.Plain,
-                    HttpStatusCode.NotAcceptable
-                )
-            }
-
             exception<javax.xml.bind.UnmarshalException> { cause ->
                 logger.error("Exception while handling '${call.request.uri}'", 
cause)
                 call.respondText(
@@ -512,7 +449,7 @@ fun main() {
                     EbicsAccountInfoEntity.find {
                         EbicsAccountsInfoTable.subscriber eq id
                     }.forEach {
-                        val element = Pain001Entity.find {
+                        Pain001Entity.find {
                             Pain001Table.debtorAccount eq it.id.value
                         }.forEach {
                             ret.payments.add(

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]