We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76de0ab commit 6882746Copy full SHA for 6882746
2 files changed
JShellAPI/src/main/java/org/togetherjava/jshellapi/exceptions/DockerException.java
@@ -1,5 +1,9 @@
1
package org.togetherjava.jshellapi.exceptions;
2
3
+import org.springframework.http.HttpStatus;
4
+import org.springframework.web.bind.annotation.ResponseStatus;
5
+
6
+@ResponseStatus(value= HttpStatus.CONFLICT, reason="Session may have been forcibly destroyed.")
7
public class DockerException extends Exception {
8
public DockerException() {
9
}
JShellAPI/src/main/resources/application.properties
@@ -16,4 +16,8 @@ jshellapi.schedulerSessionKillScanRateSeconds=60
16
17
# Docker service config
18
jshellapi.dockerResponseTimeout=60
19
-jshellapi.dockerConnectionTimeout=60
+jshellapi.dockerConnectionTimeout=60
20
21
22
+# So Spring includes the reason of ResponseStatusException
23
+server.error.include-message=always
0 commit comments