Allow to access to the exception in template