applied LGPLv3 and source code formatting.
[vamsas.git] / src / uk / ac / vamsas / client / InvalidSessionDocumentException.java
1 /*\r
2  * This file is part of the Vamsas Client version 0.1. \r
3  * Copyright 2009 by Jim Procter, Iain Milne, Pierre Marguerite, \r
4  *  Andrew Waterhouse and Dominik Lindner.\r
5  * \r
6  * Earlier versions have also been incorporated into Jalview version 2.4 \r
7  * since 2008, and TOPALi version 2 since 2007.\r
8  * \r
9  * The Vamsas Client is free software: you can redistribute it and/or modify\r
10  * it under the terms of the GNU Lesser General Public License as published by\r
11  * the Free Software Foundation, either version 3 of the License, or\r
12  * (at your option) any later version.\r
13  *  \r
14  * The Vamsas Client is distributed in the hope that it will be useful,\r
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
17  * GNU Lesser General Public License for more details.\r
18  * \r
19  * You should have received a copy of the GNU Lesser General Public License\r
20  * along with the Vamsas Client.  If not, see <http://www.gnu.org/licenses/>.\r
21  */\r
22 package uk.ac.vamsas.client;\r
23 \r
24 /**\r
25  * @author JimP\r
26  * \r
27  */\r
28 public class InvalidSessionDocumentException extends Exception {\r
29   /**\r
30    * basic error for this exception\r
31    */\r
32   public static final String INVALID_DOC = "Invalid Shared Document.";\r
33 \r
34   /**\r
35    * \r
36    */\r
37   public InvalidSessionDocumentException() {\r
38     super(INVALID_DOC);\r
39   }\r
40 \r
41   /**\r
42    * @param message\r
43    */\r
44   public InvalidSessionDocumentException(String message) {\r
45     super(INVALID_DOC + ":" + message);\r
46   }\r
47 \r
48   /**\r
49    * @param cause\r
50    */\r
51   public InvalidSessionDocumentException(Throwable cause) {\r
52     super(INVALID_DOC, cause);\r
53   }\r
54 \r
55   /**\r
56    * @param message\r
57    * @param cause\r
58    */\r
59   public InvalidSessionDocumentException(String message, Throwable cause) {\r
60     super(INVALID_DOC + ":" + message, cause);\r
61   }\r
62 \r
63 }\r