Open gbourant opened 8 months ago
I think it should be better to associate Exception with 'error template' and automatically handle by renarde like this
@ErrorTemplate(CustomException.class)
public static native TemplateInstance authError(CustomException e);
If we manually handle exception that means we must manually handle transaction too.
As discussed in issue 38839, if we use a try catch block and return a template then the transaction is not rollbacked. In order to force a rollback we need something like this