[
http://jira.magnolia-cms.com/browse/MAGNOLIA-3876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Grégory Joseph updated MAGNOLIA-3876:
-------------------------------------
Description:
Adding a few utility methods to {{ExceptionUtil}}:
* a method to help palliating the absence of multi-catch in Java<7 : useful in
scenarios when several checked exceptions must be treated the same way then
rethrown (typical in filters) ({{rethrow(e, allowedTypes..)}})
* a method to go through the stack of "causes" of a given exception to see if
there's a cause of a given type ({{wasCauseBy}(e, suspectedCause}})
* a method to turn exception class names into useful information. Typically,
JCR exceptions have meaningful names and their "message" is meaningless on its
own: PathNotFoundException("/foo/bar") can be turned into "Path not found:
/foo/bar". ({{exceptionToWords(e)}})
was:
Adding a few utility methods to {{ExceptionUtil}}:
* a method to help palliating the absence of multi-catch in Java<7 : useful in
scenarios when several checked exceptions must be treated the same way then
rethrown (typical in filters) ({{rethrow(e, allowedTypes..)}})
* a method to go through the stack of "causes" of a given exception to see if
there's a cause of a given type ({{wasCauseBy}(e, suspectedCause})
* a method to turn exception class names into useful information. Typically,
JCR exceptions have meaningful names and their "message" is meaningless on its
own: PathNotFoundException("/foo/bar") can be turned into "Path not found:
/foo/bar". ({{exceptionToWords(e)}})
> ExceptionUtil additions
> -----------------------
>
> Key: MAGNOLIA-3876
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3876
> Project: Magnolia
> Issue Type: New Feature
> Security Level: Public
> Components: core
> Reporter: Grégory Joseph
> Assignee: Grégory Joseph
> Fix For: 4.5
>
>
> Adding a few utility methods to {{ExceptionUtil}}:
> * a method to help palliating the absence of multi-catch in Java<7 : useful
> in scenarios when several checked exceptions must be treated the same way
> then rethrown (typical in filters) ({{rethrow(e, allowedTypes..)}})
> * a method to go through the stack of "causes" of a given exception to see if
> there's a cause of a given type ({{wasCauseBy}(e, suspectedCause}})
> * a method to turn exception class names into useful information. Typically,
> JCR exceptions have meaningful names and their "message" is meaningless on
> its own: PathNotFoundException("/foo/bar") can be turned into "Path not
> found: /foo/bar". ({{exceptionToWords(e)}})
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------