Content.getNodeData(name) doesn't define any throws declaration. To be compliant to the former implementation (4.2) we will do the following:
- PathNotFound: return EmptyNodeData instance
- AccessDenied: return EmptyNodeData instance
setValue will fail always, but getString(), .. methods will return default values.
Because of the amount of usages we decided against adding a throws declaration. We might rethink that in the future but for now it is far the safest/cleanest solution.
- supersedes
-
MAGNOLIA-2746 Content api is inconsistent with regards to exception handling
- Closed