X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fuk%2Fac%2Fvamsas%2Fclient%2Fsimpleclient%2FLockTimeoutException.java;h=fa5d14fbeb65471a2ab40896436dd344f6ae833e;hb=844ccad5a3fcbedec17b2af66d460f31abc7cff1;hp=ef5c644cb63ea3fa847f669858a05c0555dfc98e;hpb=5156a824b13ecd091af9f84870f41d83eb59bd71;p=vamsas.git diff --git a/src/uk/ac/vamsas/client/simpleclient/LockTimeoutException.java b/src/uk/ac/vamsas/client/simpleclient/LockTimeoutException.java index ef5c644..fa5d14f 100644 --- a/src/uk/ac/vamsas/client/simpleclient/LockTimeoutException.java +++ b/src/uk/ac/vamsas/client/simpleclient/LockTimeoutException.java @@ -1,29 +1,52 @@ -/** +/* + * This file is part of the Vamsas Client version 0.1. + * Copyright 2009 by Jim Procter, Iain Milne, Pierre Marguerite, + * Andrew Waterhouse and Dominik Lindner. + * + * Earlier versions have also been incorporated into Jalview version 2.4 + * since 2008, and TOPALi version 2 since 2007. + * + * The Vamsas Client 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. + * + * The Vamsas Client 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 Lesser General Public License for more details. * + * You should have received a copy of the GNU Lesser General Public License + * along with the Vamsas Client. If not, see . */ package uk.ac.vamsas.client.simpleclient; /** * @author jimp - * + * */ public class LockTimeoutException extends Exception { - static final long serialVersionUID=1; + static final long serialVersionUID = 1; + static final String defaultMessage = "Timeout whilst waiting for lock on VamsasDocument"; + public LockTimeoutException() { super(defaultMessage); } + public LockTimeoutException(String arg0, Throwable arg1) { - super(arg0+" (timeout whilst waiting for lock)", arg1); + super(arg0 + " (timeout whilst waiting for lock)", arg1); // TODO Auto-generated constructor stub } + public LockTimeoutException(String arg0) { - super(arg0+" (timeout whilst waiting for lock)"); + super(arg0 + " (timeout whilst waiting for lock)"); // TODO Auto-generated constructor stub } + public LockTimeoutException(Throwable arg0) { super(defaultMessage, arg0); // TODO Auto-generated constructor stub } - + }