PersistenceException.java :  » Workflow-Engines » shark » org » enhydra » shark » api » internal » instancepersistence » Java Open Source

Java Open Source » Workflow Engines » shark 
shark » org » enhydra » shark » api » internal » instancepersistence » PersistenceException.java
/* PersistenceException.java */

package org.enhydra.shark.api.internal.instancepersistence;

import org.enhydra.shark.api.RootException;

/**
 * Class PersistenceException indicates exceptional condition
 * occurring in persistence layer, ie. failing transaction.
 *
 * @author Sasa Bojanic
 * @author Nenad Stefanovic
 * @author Vladimir Puskas
 * @version 1.0
 */
public class PersistenceException extends RootException {

   /**
     * Constructs a new exception with the specified detail message.
     *
     * @param message the detail message for new PersistenceException.
     */
    public PersistenceException(String message) {
        super(message);
    }

    /**
     * Constructs a new exception with cause for throwable.
     * Message is created by super constructor (java.lang.Exception),
     * if cause isn't null - cause.toString().
     *
     * @param cause Throwable which caused this PersistenceException.
     */
    public PersistenceException(Throwable cause) {
      super(cause);
    }

    /**
     * Constructs a new exception with the specified detail
     * message and cause.
     *
     * @param message the detail message for new PersistenceException.
     * @param cause Throwable which caused this PersistenceException.
     */
    public PersistenceException(String message, Throwable cause) {
      super(message, cause);
    }
}
/* End of PersistenceException.java */
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.