-
New Feature
-
Resolution: Fixed
-
Neutral
-
None
-
None
-
-
Empty show more show less
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))
Acceptance criteria
- is depended upon by
-
MAGNOLIA-3863 An additional security filter which handles callbacks on behalf of the existing UriSecurityFilter and ContentSecurityFilter
- Closed
- is related to
-
MAGNOLIA-2923 Introducing ExceptionUtil
- Closed
-
MAGNOLIA-6051 ExceptionUtil.classNameToWords() and exceptionToWords() should work with Throwable too
- Closed