[
https://issues.apache.org/jira/browse/SLING-12816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17955758#comment-17955758
]
Konrad Windszus commented on SLING-12816:
-----------------------------------------
The JCR Resource Provider currently throws IAE or NPE for {{put(....)}}:
https://github.com/apache/sling-org-apache-sling-jcr-resource/blob/334fa10956b101c24f62e22a54f33afc374085da/src/main/java/org/apache/sling/jcr/resource/internal/JcrModifiableValueMap.java#L77
and {{get(...)}}:
https://github.com/apache/sling-org-apache-sling-jcr-resource/blob/334fa10956b101c24f62e22a54f33afc374085da/src/main/java/org/apache/sling/jcr/resource/internal/JcrValueMap.java#L304
> Clarify exceptions thrown from methods of
> o.a.s.a.r.ValueMap/ModifiableValueMap
> -------------------------------------------------------------------------------
>
> Key: SLING-12816
> URL: https://issues.apache.org/jira/browse/SLING-12816
> Project: Sling
> Issue Type: Improvement
> Reporter: Konrad Windszus
> Priority: Major
>
> Currently neither the javadoc of
> https://github.com/apache/sling-org-apache-sling-api/blob/master/src/main/java/org/apache/sling/api/resource/ValueMap.java
> nor of
> https://github.com/apache/sling-org-apache-sling-api/blob/master/src/main/java/org/apache/sling/api/resource/ModifiableValueMap.java
> explain which exceptions can be expected in case either read or write fails
> in the underlying resource provider. This should be formalized.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
