Konrad Windszus created SLING-12834:
---------------------------------------
Summary: Always expose the cause's message in PersistenceException
Key: SLING-12834
URL: https://issues.apache.org/jira/browse/SLING-12834
Project: Sling
Issue Type: Improvement
Components: API
Reporter: Konrad Windszus
In most of the cases the PersistenceException is created with a root cause
which delivers crucial information on the why (something failed).
However both {{Throwable.toString()}} and
{{Throwable.getMessage()}}/{{Throwable.getLocalizedMessage}} don't include
information from the cause by default.
In order to expose that crucial information in cases where the stacktrace is
not available (often also exposed to users in some UI, e.g. via Sling POST
servlet's HtmlResponse) it would be helpful to always include the message from
the root cause within {{PersistenceException.getLocalizedMessage()}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)