You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Angela Schreiber (Jira)" <ji...@apache.org> on 2022/02/23 15:29:00 UTC
[jira] [Resolved] (SLING-10283) Defined dedicated RepoInit RuntimeException instead of throwing generic RuntimeException/IllegalStateException/IllegalArgumentException
[ https://issues.apache.org/jira/browse/SLING-10283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Angela Schreiber resolved SLING-10283.
--------------------------------------
Resolution: Duplicate
> Defined dedicated RepoInit RuntimeException instead of throwing generic RuntimeException/IllegalStateException/IllegalArgumentException
> ---------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SLING-10283
> URL: https://issues.apache.org/jira/browse/SLING-10283
> Project: Sling
> Issue Type: Improvement
> Components: Repoinit
> Reporter: Angela Schreiber
> Priority: Major
>
> Extracted from review finding for SLING-10281:
> IMHO it would be better to throw dedicated repo-init-runtime-exceptions that come with an error-code and a message instead of throwing RuntimeException, IllegalStateException and IllegalArgumentException.
> that would allow to document the various error codes along with explanations of the root cause and instructions on how to fix the corresponding repo-init statements.
> [~kwin], fyi.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)