KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > oracle > toplink > essentials > exceptions > i18n > ConversionExceptionResource


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the "License"). You may not use this file except
5  * in compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * glassfish/bootstrap/legal/CDDLv1.0.txt or
9  * https://glassfish.dev.java.net/public/CDDLv1.0.html.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * HEADER in each file and include the License file at
15  * glassfish/bootstrap/legal/CDDLv1.0.txt. If applicable,
16  * add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your
18  * own identifying information: Portions Copyright [yyyy]
19  * [name of copyright owner]
20  */

21 // Copyright (c) 1998, 2005, Oracle. All rights reserved.
22
package oracle.toplink.essentials.exceptions.i18n;
23
24 import java.util.ListResourceBundle JavaDoc;
25
26 /**
27  * INTERNAL:
28  * English ResourceBundle for ConversionException messages.
29  *
30  * Creation date: (12/6/00 9:47:38 AM)
31  * @author: Rick Barkhouse
32  */

33 public class ConversionExceptionResource extends ListResourceBundle JavaDoc {
34     static final Object JavaDoc[][] contents = {
35                                            { "3001", "The object [{0}], of class [{1}], could not be converted to [{2}]." },
36                                            { "3002", "The object [{0}], of class [{1}], from mapping [{2}] with descriptor [{3}], could not be converted to [{4}]." },
37                                            { "3003", "Incorrect date format: [{0}] (expected [YYYY-MM-DD])" },
38                                            { "3004", "Incorrect time format: [{0}] (expected [HH:MM:SS])" },
39                                            { "3005", "Incorrect timestamp format: [{0}] (expected [YYYY-MM-DD HH:MM:SS.NNNNNNNNN])" },
40                                            { "3006", "[{0}] must be of even length to be converted to a byte array." },
41                                            { "3007", "The object [{0}], of class [{1}], could not be converted to [{2}]. Please ensure that the class [{0}] is on the CLASSPATH. You may need to use alternate API passing in the appropriate class loader as required, or setting it on the default ConversionManager" },
42                                            { "3008", "Incorrect date-time format: [{0}] (expected [YYYY-MM-DD'T'HH:MM:SS])" }
43     };
44
45     /**
46      * Return the lookup table.
47      */

48     protected Object JavaDoc[][] getContents() {
49         return contents;
50     }
51 }
52
Popular Tags