Mercurial > hg > digilib
view common/src/main/java/digilib/io/FileOpException.java @ 1714:d497eb11141c default tip
updated travis-ci config for automatic WAR releases.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 18 Feb 2019 20:49:15 +0100 |
parents | 85470c9e38ee |
children |
line wrap: on
line source
package digilib.io; /* * #%L * FileOpException -- Exception class for file operations * * Digital Image Library servlet components * %% * Copyright (C) 2001 - 2013 MPIWG Berlin * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-3.0.html>. * #L% * Author: Robert Casties (robcast@berlios.de) */ import java.io.IOException; public class FileOpException extends IOException { private static final long serialVersionUID = 7299056561734277644L; public FileOpException() { } public FileOpException(String s) { super(s); } public FileOpException(String message, Throwable cause) { /* only Java6, sigh. super(message, cause); */ super(message+" caused by "+cause.toString()); } }