Class InvalidResourceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.sling.models.factory.InvalidModelException
org.apache.sling.models.validation.InvalidResourceException
- All Implemented Interfaces:
Serializable
Exception embedding a
ValidationResult
from Sling Validation.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidResourceException
(String message, ValidationResult result, String path) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidResourceException
-
-
Method Details
-
getResult
- Returns:
- the underlying
ValidationResult
-
getPath
- Returns:
- the path of the resource which was considered invalid
-
getMessage
- Overrides:
getMessage
in classThrowable
-