jaroslav@56: /* jaroslav@56: * Copyright (c) 1994, 2006, Oracle and/or its affiliates. All rights reserved. jaroslav@56: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jaroslav@56: * jaroslav@56: * This code is free software; you can redistribute it and/or modify it jaroslav@56: * under the terms of the GNU General Public License version 2 only, as jaroslav@56: * published by the Free Software Foundation. Oracle designates this jaroslav@56: * particular file as subject to the "Classpath" exception as provided jaroslav@56: * by Oracle in the LICENSE file that accompanied this code. jaroslav@56: * jaroslav@56: * This code is distributed in the hope that it will be useful, but WITHOUT jaroslav@56: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jaroslav@56: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jaroslav@56: * version 2 for more details (a copy is included in the LICENSE file that jaroslav@56: * accompanied this code). jaroslav@56: * jaroslav@56: * You should have received a copy of the GNU General Public License version jaroslav@56: * 2 along with this work; if not, write to the Free Software Foundation, jaroslav@56: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jaroslav@56: * jaroslav@56: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA jaroslav@56: * or visit www.oracle.com if you need additional information or have any jaroslav@56: * questions. jaroslav@56: */ jaroslav@56: jaroslav@56: package java.io; jaroslav@56: jaroslav@56: /** jaroslav@56: * Signals that an I/O exception of some sort has occurred. This jaroslav@56: * class is the general class of exceptions produced by failed or jaroslav@56: * interrupted I/O operations. jaroslav@56: * jaroslav@56: * @author unascribed jaroslav@56: * @see java.io.InputStream jaroslav@56: * @see java.io.OutputStream jaroslav@56: * @since JDK1.0 jaroslav@56: */ jaroslav@56: public jaroslav@56: class IOException extends Exception { jaroslav@56: static final long serialVersionUID = 7818375828146090155L; jaroslav@56: jaroslav@56: /** jaroslav@56: * Constructs an {@code IOException} with {@code null} jaroslav@56: * as its error detail message. jaroslav@56: */ jaroslav@56: public IOException() { jaroslav@56: super(); jaroslav@56: } jaroslav@56: jaroslav@56: /** jaroslav@56: * Constructs an {@code IOException} with the specified detail message. jaroslav@56: * jaroslav@56: * @param message jaroslav@56: * The detail message (which is saved for later retrieval jaroslav@56: * by the {@link #getMessage()} method) jaroslav@56: */ jaroslav@56: public IOException(String message) { jaroslav@56: super(message); jaroslav@56: } jaroslav@56: jaroslav@56: /** jaroslav@56: * Constructs an {@code IOException} with the specified detail message jaroslav@56: * and cause. jaroslav@56: * jaroslav@56: *

Note that the detail message associated with {@code cause} is jaroslav@56: * not automatically incorporated into this exception's detail jaroslav@56: * message. jaroslav@56: * jaroslav@56: * @param message jaroslav@56: * The detail message (which is saved for later retrieval jaroslav@56: * by the {@link #getMessage()} method) jaroslav@56: * jaroslav@56: * @param cause jaroslav@56: * The cause (which is saved for later retrieval by the jaroslav@56: * {@link #getCause()} method). (A null value is permitted, jaroslav@56: * and indicates that the cause is nonexistent or unknown.) jaroslav@56: * jaroslav@56: * @since 1.6 jaroslav@56: */ jaroslav@56: public IOException(String message, Throwable cause) { jaroslav@56: super(message, cause); jaroslav@56: } jaroslav@56: jaroslav@56: /** jaroslav@56: * Constructs an {@code IOException} with the specified cause and a jaroslav@56: * detail message of {@code (cause==null ? null : cause.toString())} jaroslav@56: * (which typically contains the class and detail message of {@code cause}). jaroslav@56: * This constructor is useful for IO exceptions that are little more jaroslav@56: * than wrappers for other throwables. jaroslav@56: * jaroslav@56: * @param cause jaroslav@56: * The cause (which is saved for later retrieval by the jaroslav@56: * {@link #getCause()} method). (A null value is permitted, jaroslav@56: * and indicates that the cause is nonexistent or unknown.) jaroslav@56: * jaroslav@56: * @since 1.6 jaroslav@56: */ jaroslav@56: public IOException(Throwable cause) { jaroslav@56: super(cause); jaroslav@56: } jaroslav@56: }