KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > steadystate > css > parser > ExceptionResource


1 /*
2  * ExceptionResource.java
3  *
4  * Steady State CSS2 Parser
5  *
6  * Copyright (C) 1999, 2002 Steady State Software Ltd. All rights reserved.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21  *
22  * To contact the authors of the library, write to Steady State Software Ltd.,
23  * 49 Littleworth, Wing, Buckinghamshire, LU7 0JX, England
24  *
25  * http://www.steadystate.com/css/
26  * mailto:css@steadystate.co.uk
27  *
28  * $Id: ExceptionResource.java,v 1.1.1.1 2003/12/28 21:23:04 davidsch Exp $
29  */

30
31 package com.steadystate.css.parser;
32
33 import java.util.*;
34
35 public class ExceptionResource extends ListResourceBundle {
36
37     public Object JavaDoc[][] getContents() {
38         return contents;
39     }
40
41     static final Object JavaDoc[][] contents = {
42         {"s0", "Syntax error"},
43         {"s1", "Array out of bounds error"},
44         {"s2", "This style sheet is read only"},
45         {"s3", "The text does not represent an unknown rule"},
46         {"s4", "The text does not represent a style rule"},
47         {"s5", "The text does not represent a charset rule"},
48         {"s6", "The text does not represent an import rule"},
49         {"s7", "The text does not represent a media rule"},
50         {"s8", "The text does not represent a font face rule"},
51         {"s9", "The text does not represent a page rule"},
52         {"s10", "This isn't a Float type"},
53         {"s11", "This isn't a String type"},
54         {"s12", "This isn't a Counter type"},
55         {"s13", "This isn't a Rect type"},
56         {"s14", "This isn't an RGBColor type"},
57         {"s15", "A charset rule must be the first rule"},
58         {"s16", "A charset rule already exists"},
59         {"s17", "An import rule must preceed all other rules"},
60         {"s18", "The specified type was not found"}
61     };
62 }
63
Popular Tags