Package org.apache.sling.api.resource
Class PersistenceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.apache.sling.api.resource.PersistenceException
-
- All Implemented Interfaces:
java.io.Serializable
public class PersistenceException extends java.io.IOExceptionThis exception will be thrown during the commit to persist changes to aPersistableValueMap, aModifiableValueMapor theResourceResolver.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PersistenceException()Create a new persistence exception.PersistenceException(java.lang.String msg)Create a new persistence exception.PersistenceException(java.lang.String msg, java.lang.Throwable cause)Create a new persistence exception.PersistenceException(java.lang.String msg, java.lang.Throwable cause, java.lang.String resourcePath, java.lang.String propertyName)Create a new persistence exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPropertyName()Get the property name related to this exception.java.lang.StringgetResourcePath()Get the resource path related to this exception.
-
-
-
Constructor Detail
-
PersistenceException
public PersistenceException()
Create a new persistence exception.
-
PersistenceException
public PersistenceException(java.lang.String msg)
Create a new persistence exception.- Parameters:
msg- Exception message.
-
PersistenceException
public PersistenceException(java.lang.String msg, java.lang.Throwable cause)Create a new persistence exception.- Parameters:
msg- Exception message.cause- Exception cause.
-
PersistenceException
public PersistenceException(java.lang.String msg, java.lang.Throwable cause, java.lang.String resourcePath, java.lang.String propertyName)Create a new persistence exception.- Parameters:
msg- Exception message.cause- Exception cause.resourcePath- The optional resource pathpropertyName- The optional property name
-
-
Method Detail
-
getResourcePath
public java.lang.String getResourcePath()
Get the resource path related to this exception.- Returns:
- The resource path or
null - Since:
- 2.2 (Sling API Bundle 2.2.0)
-
getPropertyName
public java.lang.String getPropertyName()
Get the property name related to this exception.- Returns:
- The property name or
null - Since:
- 2.2 (Sling API Bundle 2.2.0)
-
-