File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/main/java/org/owasp/esapi/errors Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1313public class NotConfiguredByDefaultException extends ConfigurationException {
1414
1515 protected static final long serialVersionUID = 1L ;
16+ private static final String defaultMsg = "Unknown unsafe ESAPI method invoked without being explicitly allowed. " +
17+ "Check exception stack trace for method name." ;
1618
1719 public NotConfiguredByDefaultException (Exception e ) {
1820 super (e );
1921 }
2022
2123 public NotConfiguredByDefaultException (String s ) {
22- super (s );
24+ super ( ( s == null || s . trim (). isEmpty ()) ? defaultMsg : s );
2325 }
2426
2527 public NotConfiguredByDefaultException (String s , Throwable cause ) {
26- super (s , cause );
28+ super ( ( s == null || s . trim (). isEmpty ()) ? defaultMsg : s , cause );
2729 }
2830
2931 public NotConfiguredByDefaultException (Throwable cause ) {
30- super (cause );
32+ super (defaultMsg , cause );
3133 }
3234}
You can’t perform that action at this time.
0 commit comments