KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > dinamica > Errors


1 package dinamica;
2
3 /**
4  * Contains error message constants for all the framework classes
5  * <br>
6  * Creation date: 10/09/2003<br>
7  * Last Update: 10/09/2003<br>
8  * (c) 2003 Martin Cordova<br>
9  * This code is released under the LGPL license<br>
10  * @author Martin Cordova (dinamica@martincordova.com)
11  */

12 class Errors
13 {
14
15     /* recordset errors */
16     final static String JavaDoc INVALID_DATATYPE = "Invalid data type: {0} - please use only (java.sql.Types) INTEGER, BIGINT, VARCHAR, TIMESTAMP, DATE or DOUBLE.";
17     final static String JavaDoc FIELD_NOT_FOUND = "Field not found: {0}. The Recordset does not contain a field with this name.";
18     final static String JavaDoc RECNUM_OUT_OF_RANGE = "Invalid record number: {0}. The Record number must be between 0 and {1}.";
19
20     /* jndi errors */
21     final static String JavaDoc DATASOURCE_NOT_FOUND = "JDBC DataSource not found: {0}";
22     
23     /* database error */
24     final static String JavaDoc DATABASE_ERROR = "JDBC Error processing query: {0}";
25     final static String JavaDoc INVALID_STMT_PARAMS = "Invalid prepared statement parameters. Params array size={0}. Recordset field count={1}";
26
27     /* template engine errors */
28     final static String JavaDoc INVALID_PREFIX = "Invalid prefix length: {0}";
29     final static String JavaDoc INVALID_MARKER = "Invalid Marker ID - must be a contiguous string of letters and numbers, no spaces or special characters: {0}";
30     final static String JavaDoc MARKER_UNCLOSED = "Marker is not properly closed with with a brace '}'.";
31     final static String JavaDoc SEQUENCE_BAD_CONFIGURATION = "SQL Sequences are not properly in WEB.XML as context parameters: {0}.";
32     final static String JavaDoc REPEAT_TAG_NOT_FOUND = "Repeat Section Tag not found in template: {0}.";
33     final static String JavaDoc REPEAT_TAG_NOT_CLOSED = "Repeat Section Tag not properly closed: {0}.";
34
35 }
36
37
Popular Tags