@@ -26,33 +26,40 @@ private static boolean checkJShellWrapperImageName(String imageName) {
2626
2727 public Config {
2828 if (regularSessionTimeoutSeconds <= 0 )
29- throw new IllegalArgumentException ("Invalid value " + regularSessionTimeoutSeconds );
29+ throw new IllegalArgumentException (
30+ "Invalid regularSessionTimeoutSeconds " + regularSessionTimeoutSeconds );
3031 if (oneTimeSessionTimeoutSeconds <= 0 )
31- throw new IllegalArgumentException ("Invalid value " + oneTimeSessionTimeoutSeconds );
32+ throw new IllegalArgumentException (
33+ "Invalid oneTimeSessionTimeoutSeconds " + oneTimeSessionTimeoutSeconds );
3234 if (evalTimeoutSeconds <= 0 )
33- throw new IllegalArgumentException ("Invalid value " + evalTimeoutSeconds );
35+ throw new IllegalArgumentException ("Invalid evalTimeoutSeconds " + evalTimeoutSeconds );
3436 if (evalTimeoutValidationLeeway <= 0 )
35- throw new IllegalArgumentException ("Invalid value " + evalTimeoutSeconds );
37+ throw new IllegalArgumentException (
38+ "Invalid evalTimeoutValidationLeeway " + evalTimeoutSeconds );
3639 if (sysOutCharLimit <= 0 )
37- throw new IllegalArgumentException ("Invalid value " + sysOutCharLimit );
40+ throw new IllegalArgumentException ("Invalid sysOutCharLimit " + sysOutCharLimit );
3841 if (maxAliveSessions <= 0 )
39- throw new IllegalArgumentException ("Invalid value " + maxAliveSessions );
42+ throw new IllegalArgumentException ("Invalid maxAliveSessions " + maxAliveSessions );
4043 if (dockerMaxRamMegaBytes <= 0 )
41- throw new IllegalArgumentException ("Invalid value " + dockerMaxRamMegaBytes );
44+ throw new IllegalArgumentException (
45+ "Invalid dockerMaxRamMegaBytes " + dockerMaxRamMegaBytes );
4246 if (dockerCPUsUsage <= 0 )
43- throw new IllegalArgumentException ("Invalid value " + dockerCPUsUsage );
47+ throw new IllegalArgumentException ("Invalid dockerCPUsUsage " + dockerCPUsUsage );
4448 if (dockerCPUSetCPUs != null && !dockerCPUSetCPUs .matches ("[1-9]?\\ d([-,]\\ d?\\ d)?" ))
45- throw new IllegalArgumentException ("Invalid value " + dockerCPUSetCPUs );
49+ throw new IllegalArgumentException ("Invalid dockerCPUSetCPUs " + dockerCPUSetCPUs );
4650 if (schedulerSessionKillScanRateSeconds <= 0 )
47- throw new IllegalArgumentException (
48- "Invalid value " + schedulerSessionKillScanRateSeconds );
51+ throw new IllegalArgumentException ("Invalid schedulerSessionKillScanRateSeconds "
52+ + schedulerSessionKillScanRateSeconds );
4953 if (dockerResponseTimeout <= 0 )
50- throw new IllegalArgumentException ("Invalid value " + dockerResponseTimeout );
54+ throw new IllegalArgumentException (
55+ "Invalid dockerResponseTimeout " + dockerResponseTimeout );
5156 if (dockerConnectionTimeout <= 0 )
52- throw new IllegalArgumentException ("Invalid value " + dockerConnectionTimeout );
57+ throw new IllegalArgumentException (
58+ "Invalid dockerConnectionTimeout " + dockerConnectionTimeout );
5359
5460 if (!checkJShellWrapperImageName (jshellWrapperImageName )) {
55- throw new IllegalArgumentException ("Invalid value " + jshellWrapperImageName );
61+ throw new IllegalArgumentException (
62+ "Invalid jshellWrapperImageName " + jshellWrapperImageName );
5663 }
5764 }
5865}
0 commit comments