We should define the |
Status: DRAFT work in progress
Created: 23. December 2007
Author: fmeschbe
Inspired by Barry Ruzek's article Effective Java Exceptions, I went out to revisit the exceptions we have defined in the Sling API. This is what I came out with:
SlingException
is a base exception and is declared almost everywhereHttpStatusCodeException
is an IOException
not a SlingException
and is not declared to be thrown anywhereAccessControlException
possibly thrown when accessing a resource through the ResourceResolver
.Thinking about these (checked) Exceptions, I propose to change this situation as follows:
SlingException
is a RuntimeException
and is used as the base exception for all exceptions defined by the Sling API.