org.apache.sling.api.resource
Class PersistenceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.apache.sling.api.resource.PersistenceException
All Implemented Interfaces:
Serializable

public class PersistenceException
extends IOException

This exception will be thrown during the try to persist changes to a PersistableValueMap, a ModifiableValueMap#update() or the ResourceResolver.

See Also:
Serialized Form

Constructor Summary
PersistenceException()
          Create a new persistence exception.
PersistenceException(String msg)
          Create a new persistence exception.
PersistenceException(String msg, Throwable cause)
          Create a new persistence exception.
PersistenceException(String msg, Throwable cause, String resourcePath, String propertyName)
          Create a new persistence exception.
 
Method Summary
 String getPropertyName()
          Get the property name related to this exception.
 String getResourcePath()
          Get the resource path related to this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersistenceException

public PersistenceException()
Create a new persistence exception.


PersistenceException

public PersistenceException(String msg)
Create a new persistence exception.

Parameters:
msg - Exception message.

PersistenceException

public PersistenceException(String msg,
                            Throwable cause)
Create a new persistence exception.

Parameters:
msg - Exception message.
cause - Exception cause.

PersistenceException

public PersistenceException(String msg,
                            Throwable cause,
                            String resourcePath,
                            String propertyName)
Create a new persistence exception.

Parameters:
msg - Exception message.
cause - Exception cause.
Method Detail

getResourcePath

public String getResourcePath()
Get the resource path related to this exception.

Returns:
The resource path or null
Since:
2.2

getPropertyName

public String getPropertyName()
Get the property name related to this exception.

Returns:
The property name or null
Since:
2.2


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.