Package rife.cmf.dam
Interface ContentDataUserWithoutResult
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
By implementing this interface it's possible to provide the logic that should be
executed by methods that allow interaction with content data.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
throwException
(Exception exception) Calling this method makes it possible to throw a checked exception from within this class.void
useContentData
(Object contentData) Should be implemented by all implementations.
-
Method Details
-
useContentData
Should be implemented by all implementations.- Throws:
InnerClassException
- Since:
- 1.0
-
throwException
Calling this method makes it possible to throw a checked exception from within this class.To catch it you should surround the using method with a
try-catch
block that catchingInnerClassException
. The original exception is then available throughgetCause()
and can for example be rethrown.- Throws:
InnerClassException
- when a checked exception needs to be thrown from within this class and caught outside the caller.- Since:
- 1.0
-