All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.samskivert.io.PersistenceException Maven / Gradle / Ivy

The newest version!
//
// samskivert library - useful routines for java programs
// Copyright (C) 2001-2012 Michael Bayne, et al.
// http://github.com/samskivert/samskivert/blob/master/COPYING

package com.samskivert.io;

/**
 * A persistence exception can be thrown when an error occurs in
 * underlying persistence code. By encapsulating errors, one retains the
 * ability to make changes to the implementation structure without
 * affecting the interface to persistence services presented to the
 * application.
 */
public class PersistenceException extends Exception
{
    /**
     * Constructs a persistence exception with the specified error
     * message.
     */
    public PersistenceException (String message)
    {
        super(message);
    }

    /**
     * Constructs a persistence exception with the specified error message
     * and the chained causing event.
     */
    public PersistenceException (String message, Exception cause)
    {
        super(message);
        initCause(cause);
    }

    /**
     * Constructs a persistence exception with the specified chained
     * causing event.
     */
    public PersistenceException (Exception cause)
    {
        initCause(cause);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy