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


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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@velocity.apache.org
For additional commands, e-mail: dev-h...@velocity.apache.org

Reply via email to