You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Claude Brisson (JIRA)" <ji...@apache.org> on 2016/08/30 20:58:20 UTC
[jira] [Resolved] (VELOCITY-798) Velocity wraps java.lang.Error in
org.apache.velocity.exception.MethodInvocationException
[ https://issues.apache.org/jira/browse/VELOCITY-798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claude Brisson resolved VELOCITY-798.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.x
Fixed by commit 1758467.
> Velocity wraps java.lang.Error in org.apache.velocity.exception.MethodInvocationException
> -----------------------------------------------------------------------------------------
>
> Key: VELOCITY-798
> URL: https://issues.apache.org/jira/browse/VELOCITY-798
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.7
> Environment: n.a.
> Reporter: Alexander Veit
> Assignee: Claude Brisson
> Fix For: 2.x
>
>
> If a method call throws a java.lang.Error, Velocity wraps it in a MethodInvocationException, which itself is not a java.lang.Error.
> The spec says: "An Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch."
> Wrapping the error hides it from applications and makes it difficult to handle.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org