Class PersistenceException

    • 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.String getPropertyName()
      Get the property name related to this exception.
      java.lang.String getResourcePath()
      Get the resource path related to this exception.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 path
        propertyName - 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)