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

com.persistit.exception.AppendableIOException Maven / Gradle / Ivy

There is a newer version: 3.3.0
Show newest version
/**
 * Copyright © 2012 Akiban Technologies, Inc.  All rights reserved.
 * 
 * This program and the accompanying materials are made available
 * under the terms of the Eclipse Public License v1.0 which
 * accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * This program may also be available under different license terms.
 * For more information, see www.akiban.com or contact [email protected].
 * 
 * Contributors:
 * Akiban Technologies, Inc.
 */

package com.persistit.exception;

import java.io.IOException;

/**
 * Unchecked wrapper for an {@link IOException} used in a context where the
 * {@link Appendable#append} operation throws an IOException. Since most uses of
 * methods that take an Appendable will operate on
 * StringBuilders, for which an IOException is never thrown, it is
 * desirable for calling code not to have to catch and handle
 * IOException. Therefore any IOException from
 * invoking append on a different Appendable implementation is
 * caught and thrown as this unchecked type.
 * 
 * @version 1.0
 */
public class AppendableIOException extends RuntimeException {

    private static final long serialVersionUID = -2096632389635542578L;

    public AppendableIOException(final IOException ioe) {
        super(ioe);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy