From 55967b121c677e03c2801bd779ab02d4e6c16973 Mon Sep 17 00:00:00 2001 From: hongwei Date: Thu, 27 Jan 2022 21:58:47 +0100 Subject: [PATCH] docfix/tweaked the error message --- obp-api/pom.xml | 5 +++++ obp-api/src/main/scala/code/api/v4_0_0/APIMethods400.scala | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/obp-api/pom.xml b/obp-api/pom.xml index fcf409b80..8077e04ca 100644 --- a/obp-api/pom.xml +++ b/obp-api/pom.xml @@ -107,6 +107,11 @@ postgresql 42.2.8 + + com.oracle.database.jdbc + ojdbc8 + 21.4.0.0 + com.h2database h2 diff --git a/obp-api/src/main/scala/code/api/v4_0_0/APIMethods400.scala b/obp-api/src/main/scala/code/api/v4_0_0/APIMethods400.scala index f0d48b398..72740e003 100644 --- a/obp-api/src/main/scala/code/api/v4_0_0/APIMethods400.scala +++ b/obp-api/src/main/scala/code/api/v4_0_0/APIMethods400.scala @@ -5727,15 +5727,15 @@ trait APIMethods400 { // }yield{ // JBool(isDeleted) // } - throw new RuntimeException(s"$NotImplemented Only support Http Method `GET`,`CREATE`,`DELETE` yet, current is ${method.value}") + throw new RuntimeException(s"$NotImplemented We only support the Http Methods GET and POST . The current method is: ${method.value}") } else if (method.value.equalsIgnoreCase("put")) { - throw new RuntimeException(s"$NotImplemented Only support Http Method `GET`,`CREATE`,`DELETE` yet, current is ${method.value}") + throw new RuntimeException(s"$NotImplemented We only support the Http Methods GET and POST . The current method is: ${method.value}") }else { NewStyle.function.tryons(s"$InvalidEndpointMapping `request_mapping` must be linked to at least one valid dynamic entity!", 400, cc.callContext) { DynamicEndpointHelper.getEntityNameKeyAndValue(responseMappingString, pathParams) } - throw new RuntimeException(s"$NotImplemented Only support Http Method `GET`,`CREATE`,`DELETE` yet, current is ${method.value}") + throw new RuntimeException(s"$NotImplemented We only support the Http Methods GET and POST . The current method is: ${method.value}") } } yield{ (Full(("code", 200) ~ ("value", responseBody)), callContext)