File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
java/org/togetherjava/jshellapi/exceptions Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 11package org .togetherjava .jshellapi .exceptions ;
22
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." )
37public class DockerException extends Exception {
48 public DockerException () {
59 }
Original file line number Diff line number Diff line change @@ -16,4 +16,8 @@ jshellapi.schedulerSessionKillScanRateSeconds=60
1616
1717# Docker service config
1818jshellapi.dockerResponseTimeout =60
19- jshellapi.dockerConnectionTimeout =60
19+ jshellapi.dockerConnectionTimeout =60
20+
21+
22+ # So Spring includes the reason of ResponseStatusException
23+ server.error.include-message =always
You can’t perform that action at this time.
0 commit comments