KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jxl > write > biff > JxlWriteException


1 /*********************************************************************
2 *
3 * Copyright (C) 2002 Andrew Khan
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 ***************************************************************************/

19
20 package jxl.write.biff;
21
22 import jxl.write.WriteException;
23
24 /**
25  * Exception thrown when reading a biff file
26  */

27 public class JxlWriteException extends WriteException
28 {
29   private static class WriteMessage
30   {
31     /**
32      */

33     public String JavaDoc message;
34     /**
35      * Constructs this exception with the specified message
36      *
37      * @param m the messageA
38      */

39     WriteMessage(String JavaDoc m) {message = m;}
40   }
41
42   /**
43    */

44   static WriteMessage formatInitialized =
45     new WriteMessage("Attempt to modify a referenced format");
46   /**
47    */

48   static WriteMessage cellReferenced =
49     new WriteMessage("Cell has already been added to a worksheet");
50
51   static WriteMessage maxRowsExceeded =
52     new WriteMessage("The maximum number of rows permitted on a worksheet " +
53                      "been exceeded");
54
55   static WriteMessage maxColumnsExceeded =
56     new WriteMessage("The maximum number of columns permitted on a " +
57                      "worksheet has been exceeded");
58
59   static WriteMessage copyPropertySets =
60     new WriteMessage("Error encounted when copying additional property sets");
61
62   /**
63    * Constructs this exception with the specified message
64    *
65    * @param m the message
66    */

67   public JxlWriteException(WriteMessage m)
68   {
69     super(m.message);
70   }
71 }
72
Popular Tags