Reply To: security related isuue

Splash Forums Rewrite Users security related isuue Reply To: security related isuue

#25186

0swald
Participant

Lincoln, there is another option, I just had a look at the RewriteException and, in case you prefer to throw namely this particular one, here is it:


    for (ExpressionLanguageProvider provider : getProviders()) {
      try {
        return providerCallable.call(event, context, provider);
      } catch (RuntimeException e) {
        throw new RewriteException(e.getMessage(), e);
      } catch (Exception e) {
        exceptions.add(e);
      }
    }

The above would also make it possible to unwrap the source exception for proper error handling.