docfix/tweaked the error message

This commit is contained in:
hongwei 2022-01-27 21:58:47 +01:00
parent 84d94a6489
commit 55967b121c
2 changed files with 8 additions and 3 deletions

View File

@ -107,6 +107,11 @@
<artifactId>postgresql</artifactId>
<version>42.2.8</version>
</dependency>
<dependency>
<groupId>com.oracle.database.jdbc</groupId>
<artifactId>ojdbc8</artifactId>
<version>21.4.0.0</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>

View File

@ -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)