Java Doc for ErrorCode.java in  » Database-DBMS » h2database » org » h2 » constant » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database DBMS » h2database » org.h2.constant 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.h2.constant.ErrorCode

ErrorCode
public class ErrorCode (Code)
This class defines the error codes used for SQL exceptions.


Field Summary
final public static  intACCESS_DENIED_TO_CLASS_1
     The error with code 90134 is thrown when trying to load a Java class that is not part of the allowed classes.
final public static  intADMIN_RIGHTS_REQUIRED
     The error with code 90040 is thrown when a user that is not administrator tries to execute a statement that requires admin privileges.
final public static  intAGGREGATE_NOT_FOUND_1
     The error with code 90132 is thrown when trying to drop a user defined aggregate function that doesn't exist.
final public static  intAMBIGUOUS_COLUMN_NAME_1
     The error with code 90059 is thrown when a query contains a column that could belong to multiple tables.
final public static  intCANNOT_CHANGE_SETTING_WHEN_OPEN_1
     The error with code 90133 is thrown when trying to change a specific database property while the database is already open.
final public static  intCANNOT_DROP_2
     The error with code 90107 is thrown when trying to drop an object because another object would become invalid.
final public static  intCANNOT_DROP_CURRENT_USER
     The error with code 90019 is thrown when trying to drop the current user.
final public static  intCANNOT_DROP_LAST_COLUMN
     The error with code 90084 is thrown when trying to drop the last column of a table.
final public static  intCANNOT_DROP_TABLE_1
     The error with code 90118 is thrown when trying to drop a table can not be dropped.
final public static  intCANNOT_MIX_INDEXED_AND_UNINDEXED_PARAMS
     The error with code 90123 is thrown when trying mix regular parameters and indexed parameters in the same statement.
final public static  intCANNOT_TRUNCATE_1
     The error with code 90106 is thrown when trying to truncate a table that can not be truncated.
final public static  intCAN_ONLY_ASSIGN_TO_VARIABLE_1
     The error with code 90137 is thrown when trying to assign a value to something that is not a variable.
final public static  intCHECK_CONSTRAINT_VIOLATED_1
     The error with code 23000 is thrown when a check constraint is violated.
final public static  intCLASS_NOT_FOUND_1
     The error with code 90086 is thrown when a class can not be loaded because it is not in the classpath or because a related class is not in the classpath.
final public static  intCLUSTER_ERROR_DATABASE_RUNS_ALONE
     The error with code 90093 is thrown when trying to connect to a clustered database that runs in standalone mode.
final public static  intCLUSTER_ERROR_DATABASE_RUNS_CLUSTERED_1
     The error with code 90094 is thrown when trying to connect to a clustered database that runs together with a different cluster node setting than what is used when trying to connect.
final public static  intCOLLATION_CHANGE_WITH_DATA_TABLE_1
     The error with code 90089 is thrown when trying to change the collation while there was already data in the database.
final public static  intCOLUMN_CONTAINS_NULL_VALUES_1
     The error with code 90081 is thrown when trying to alter a column to not allow NULL, if there is already data in the table where this column is NULL.
final public static  intCOLUMN_COUNT_DOES_NOT_MATCH
     The error with code 21002 is thrown when the number of columns does not match.
final public static  intCOLUMN_IS_PART_OF_INDEX_1
     The error with code 90075 is thrown when trying to alter a table and allow null for a column that is part of a primary key or hash index.
final public static  intCOLUMN_MAY_BE_REFERENCED_1
     The error with code 90083 is thrown when trying to drop a column that is part of a constraint.
final public static  intCOLUMN_MUST_NOT_BE_NULLABLE_1
     The error with code 90023 is thrown when trying to set a primary key on a nullable column.
final public static  intCOLUMN_NOT_FOUND_1
     The error with code 42122 is thrown when referencing an non-existing column.
final public static  intCOMMIT_ROLLBACK_NOT_ALLOWED
     The error with code 90058 is thrown when trying to call commit or rollback inside a trigger, or when trying to call a method inside a trigger that implicitly commits the current transaction, if an object is locked.
final public static  intCOMPRESSION_ERROR
     The error with code 90104 is thrown when the data can not be de-compressed.
final public static  intCONCURRENT_UPDATE_1
     The error with code 90131 is thrown when using multi version concurrency control, and trying to update the same row from within two connections at the same time.
final public static  intCONNECTION_BROKEN
     The error with code 90067 is thrown when the connection to the database is lost.
final public static  intCONSTANT_ALREADY_EXISTS_1
     The error with code 90114 is thrown when trying to create a constant if a constant with this name already exists.
final public static  intCONSTANT_NOT_FOUND_1
     The error with code 90115 is thrown when trying to drop a constant that does not exists.
final public static  intCONSTRAINT_ALREADY_EXISTS_1
     The error with code 90045 is thrown when trying to create a constraint if an object with this name already exists.
final public static  intCONSTRAINT_NOT_FOUND_1
     The error with code 90057 is thrown when trying to drop a constraint that does not exist.
final public static  intDATABASE_ALREADY_OPEN_1
     The error with code 90020 is thrown when trying to open a database in embedded mode if this database is already in use in another process (or in a different class loader).
final public static  intDATABASE_CALLED_AT_SHUTDOWN
     The error with code 90121 is thrown when a database operation is started while the virtual machine exits (for example in a shutdown hook), or when the session is closed.
final public static  intDATABASE_IS_IN_EXCLUSIVE_MODE
     The error with code 90135 is thrown when trying to open a connection to a database that is currently open in exclusive mode.
final public static  intDATABASE_IS_NOT_PERSISTENT
     The error with code 90126 is thrown when trying to call the BACKUP statement for an in-memory database.
final public static  intDATABASE_IS_READ_ONLY
     The error with code 90097 is thrown when trying to delete or update a database if it is open in read-only mode.
final public static  intDATABASE_NOT_FOUND_1
     The error with code 90013 is thrown when trying to open a database that does not exist using the flag IFEXISTS=TRUE, or when trying to access a database object with a catalog name that does not match the database name.
final public static  intDATA_CONVERSION_ERROR_1
     The error with code 90021 is thrown when trying to convert a value to a data type where the conversion is undefined, or when an error occured trying to convert.
final public static  intDATE_CONSTANT_2
     The error with code 90009 is thrown when a text can not be converted to a date constant.
final public static  intDESERIALIZATION_FAILED_1
     The error with code 90027 is thrown when an object could not be de-serialized.
final public static  intDIVISION_BY_ZERO_1
     The error with code 22012 is thrown when trying to divide a value by zero.
final public static  intDRIVER_VERSION_ERROR_2
     The error with code 90047 is thrown when trying to connect to a TCP server with an incompatible client.
final public static  intDUPLICATE_COLUMN_NAME_1
     The error with code 42121 is thrown when trying to create a table or insert into a table and use the same column name twice.
final public static  intDUPLICATE_KEY_1
     The error with code 23001 is thrown when trying to insert a row that would violate a unique index or primary key.
final public static  intDUPLICATE_PROPERTY_1
     The error with code 90066 is thrown when the same property appears twice in the database URL or in the connection properties.
final public static  intERROR_ACCESSING_LINKED_TABLE_2
     The error with code 90111 is thrown when an exception occured while accessing a linked table.
final public static  intERROR_CREATING_TRIGGER_OBJECT_3
     The error with code 90043 is thrown when there is an error initializing the trigger, for example because the class does not implement the Trigger interface.
final public static  intERROR_EXECUTING_TRIGGER_3
     The error with code 90044 is thrown when an exception or error occured while calling the triggers fire method.
final public static  intERROR_OPENING_DATABASE
     The error with code 8000 is thrown when there was a problem trying to create a database lock.
final public static  intERROR_SETTING_DATABASE_EVENT_LISTENER_2
     The error with code 90099 is thrown when an error occured trying to initialize the database event listener.
final public static  intEXCEPTION_IN_FUNCTION
     The error with code 90105 is thrown when an exception occured in a user defined method.
final public static  intEXCEPTION_OPENING_PORT_2
     The error with code 90061 is thrown when trying to start a server if a server is already running on the same port.
final public static  intFEATURE_NOT_SUPPORTED
     The error with code 50100 is thrown when calling an unsupported JDBC method.
final public static  intFILE_CORRUPTED_1
     The error with code 90030 is thrown when the database engine has detected a checksum mismatch in the data or index.
final public static  intFILE_CREATION_FAILED_1
     The error with code 90062 is thrown when a directory or file could not be created.
final public static  intFILE_DELETE_FAILED_1
     The error with code 90025 is thrown when a file could not be deleted, because it is still in use (only in Windows), or because an error occured when deleting.
final public static  intFILE_ENCRYPTION_ERROR_1
     The error with code 90049 is thrown when trying to open an encrypted database with the wrong file encryption password or algorithm.
final public static  intFILE_NOT_FOUND_1
     The error with code 90124 is thrown when trying to access a file that doesn't exist.
final public static  intFILE_RENAME_FAILED_2
     The error with code 90024 is thrown when a file could not be renamed.
final public static  intFILE_VERSION_ERROR_1
     The error with code 90048 is thrown when the file header of a database files (*.db) does not match the expected version, or if it is corrupted.
final public static  intFUNCTION_ALIAS_ALREADY_EXISTS_1
     The error with code 90076 is thrown when trying to create a function alias for a system function or for a function that is already defined.
final public static  intFUNCTION_ALIAS_NOT_FOUND_1
     The error with code 90077 is thrown when trying to drop a system function or a function alias that does not exist.
final public static  intFUNCTION_MUST_RETURN_RESULT_SET_1
     The error with code 90000 is thrown when a function that does not return a result set was used in the FROM clause.
final public static  intFUNCTION_NOT_FOUND_1
     The error with code 90022 is thrown when trying to call a unknown function.
final public static  intGENERAL_ERROR_1
     The error with code 50000 is thrown when something unexpected occurs, for example an internal stack overflow.
final public static  intHEX_STRING_ODD_1
     The error with code 90003 is thrown when trying to convert a String to a binary value.
final public static  intHEX_STRING_WRONG_1
     The error with code 90004 is thrown when trying to convert a text to binary, but the expression contains a non-hexadecimal character.
final public static  intINDEX_ALREADY_EXISTS_1
     The error with code 42111 is thrown when trying to create an index if an index with the same name already exists.
final public static  intINDEX_BELONGS_TO_CONSTRAINT_1
     The error with code 90085 is thrown when trying to manually drop an index that was generated by the system because of a unique constraint.
final public static  intINDEX_NOT_FOUND_1
     The error with code 42112 is thrown when trying to drop or reference an index that does not exist.
final public static  intINVALID_CLASS_2
     The error with code 90125 is thrown when PreparedStatement.setBigDecimal is called with object that extends the class BigDecimal, and the system property h2.allowBigDecimalExtensions is not set.
final public static  intINVALID_PARAMETER_COUNT_2
     The error with code 7001 is thrown when trying to call a function with the wrong number of parameters.
final public static  intINVALID_USE_OF_AGGREGATE_FUNCTION_1
     The error with code 90054 is thrown when an aggregate function is used where it is not allowed.
final public static  intINVALID_VALUE_2
     The error with code 90008 is thrown when trying to use a value that is not valid for the given operation.
final public static  intIO_EXCEPTION_1
     The error with code 90028 is thrown when an input / output error occured.
final public static  intIO_EXCEPTION_2
     The error with code 90031 is thrown when an input / output error occured.
final public static  intLIKE_ESCAPE_ERROR_1
     The error with code 22025 is thrown when using an invalid escape character sequence for LIKE or REGEXP.
final public static  intLITERALS_ARE_NOT_ALLOWED
     The error with code 90116 is thrown when trying use a literal in a SQL statement if literals are disabled.
final public static  intLOCK_TIMEOUT_1
     The error with code 50200 is thrown when another connection locked an object longer than the lock timeout set for this connection, or when a deadlock occured.
final public static  intMETHOD_NOT_ALLOWED_FOR_PREPARED_STATEMENT
     The error with code 90130 is thrown when an execute method of PreparedStatement was called with a SQL statement. This is not allowed according to the JDBC specification.
final public static  intMETHOD_NOT_ALLOWED_FOR_QUERY
     The error with code 90001 is thrown when Statement.executeUpdate() was called for a SELECT statement.
final public static  intMETHOD_NOT_FOUND_1
     The error with code 90087 is thrown when the specified method was not found in the class.
final public static  intMETHOD_ONLY_ALLOWED_FOR_QUERY
     The error with code 90002 is thrown when Statement.executeQuery() was called for a statement that does not return a result set (for example, an UPDATE statement).
final public static  intMUST_GROUP_BY_COLUMN_1
     The error with code 90016 is thrown when a column was used in the expression list or the order by clause of a group or aggregate query, and that column is not in the GROUP BY clause.
final public static  intNOT_ENOUGH_RIGHTS_FOR_1
     The error with code 90096 is thrown when trying to perform an operation with a non-admin user if the user does not have enough rights.
final public static  intNOT_ON_UPDATABLE_ROW
     The error with code 90029 is thrown when calling ResultSet.deleteRow(), insertRow(), or updateRow() when the current row is not updatable.
final public static  intNO_DATA_AVAILABLE
     The error with code 2000 is thrown when the result set is positioned before the first or after the last row, or not on a valid row for the given operation.
final public static  intNO_DEFAULT_SET_1
     The error with code 90056 is thrown when updating or deleting from a table with a foreign key constraint that should set the default value, but there is no default value defined.
final public static  intNO_DISK_SPACE_AVAILABLE
     The error with code 90100 is thrown when there is no more space available on the device where the database files are stored.
final public static  intNULL_NOT_ALLOWED
     The error with code 90006 is thrown when trying to insert NULL into a column that does not allow NULL.
final public static  intNUMERIC_VALUE_OUT_OF_RANGE
     The error with code 22003 is thrown when a value is out of range when converting to another data type.
final public static  intOBJECT_CLOSED
     The error with code 90007 is thrown when trying to call a JDBC method on an object that has been closed.
final public static  intOPERATION_NOT_SUPPORTED_WITH_VIEWS_2
     The error with code 90122 is thrown when trying to altering, adding or dropping columns of a table that has views.
final public static  intORDER_BY_NOT_IN_RESULT
     The error with code 90068 is thrown when the given expression that is used in the ORDER BY is not in the result list.
final public static  intOVERFLOW_FOR_TYPE_1
     The error with code 90110 is thrown when the result of the calculation does not fit in the given data type.
final public static  intPARAMETER_NOT_SET_1
     The error with code 90012 is thrown when trying to execute a statement with an parameter.
final public static  intPARSE_ERROR_1
     The error with code 90014 is thrown when trying to parse a date with an unsupported format string, or when the date can not be parsed.
final public static  intREFERENTIAL_INTEGRITY_VIOLATED_CHILD_EXISTS_1
     The error with code 23003 is thrown when trying to delete or update a row when this would violate a referential constraint, because there is a child row that would become an orphan.
final public static  intREFERENTIAL_INTEGRITY_VIOLATED_PARENT_MISSING_1
     The error with code 23002 is thrown when trying to insert or update a row that would violate a referential constraint, because the referenced row does not exist.
final public static  intREMOTE_CONNECTION_NOT_ALLOWED
     The error with code 90117 is thrown when trying to connect to a TCP server from another machine, if remote connections are not allowed.
final public static  intRESULT_SET_NOT_SCROLLABLE
     The error with code 90128 is thrown when trying to call a method of the ResultSet that is only supported for scrollable result sets, and the result set is not scrollable.
final public static  intRESULT_SET_NOT_UPDATABLE
     The error with code 90127 is thrown when trying to update or delete a row in a result set if the result set is not updatable.
final public static  intRIGHT_NOT_FOUND
     The error with code 90073 is thrown when trying to revoke a right that does not or no longer exist.
final public static  intROLES_AND_RIGHT_CANNOT_BE_MIXED
     The error with code 90072 is thrown when trying to grant or revoke if no role or user with that name exists.
final public static  intROLE_ALREADY_EXISTS_1
     The error with code 90069 is thrown when trying to create a role if an object with this name already exists.
final public static  intROLE_ALREADY_GRANTED_1
     The error with code 90074 is thrown when trying to grant a role that has already been granted.
final public static  intROLE_CAN_NOT_BE_DROPPED_1
     The error with code 90091 is thrown when trying to drop the role PUBLIC.
final public static  intROLE_NOT_FOUND_1
     The error with code 90070 is thrown when trying to drop or grant a role that does not exists.
final public static  intROW_NOT_FOUND_WHEN_DELETING_1
     The error with code 90112 is thrown when a row was deleted twice while locking was disabled.
final public static  intSAVEPOINT_IS_INVALID_1
     The error with code 90063 is thrown when trying to rollback to a savepoint that is not defined.
final public static  intSAVEPOINT_IS_NAMED
     The error with code 90065 is thrown when Savepoint.getSavepointId() is called on a named savepoint.
final public static  intSAVEPOINT_IS_UNNAMED
     The error with code 90064 is thrown when Savepoint.getSavepointName() is called on an unnamed savepoint.
final public static  intSCALAR_SUBQUERY_CONTAINS_MORE_THAN_ONE_ROW
     The error with code 90053 is thrown when a subquery that is used as a value contains more than one row.
final public static  intSCHEMA_ALREADY_EXISTS_1
     The error with code 90078 is thrown when trying to create a schema if an object with this name already exists.
final public static  intSCHEMA_CAN_NOT_BE_DROPPED_1
     The error with code 90090 is thrown when trying to drop a schema that may not be dropped (the schema PUBLIC and the schema INFORMATION_SCHEMA).
final public static  intSCHEMA_NAME_MUST_MATCH
     The error with code 90080 is thrown when trying to rename a object to a different schema, or when trying to create a related object in another schema.
final public static  intSCHEMA_NOT_FOUND_1
     The error with code 90079 is thrown when trying to drop a schema that does not exist.
final public static  intSECOND_PRIMARY_KEY
     The error with code 90017 is thrown when trying to define a second primary key constraint for this table.
final public static  intSEQUENCE_ALREADY_EXISTS_1
     The error with code 90035 is thrown when trying to create a sequence if a sequence with this name already exists.
final public static  intSEQUENCE_BELONGS_TO_A_TABLE_1
     The error with code 90082 is thrown when trying to drop a system generated sequence.
final public static  intSEQUENCE_NOT_FOUND_1
     The error with code 90036 is thrown when trying to access a sequence that does not exist.
final public static  intSERIALIZATION_FAILED_1
     The error with code 90026 is thrown when an object could not be serialized.
final public static  intSIMULATED_POWER_OFF
     The error with code 90098 is thrown when the self-destruction counter has reached zero.
final public static  intSTATEMENT_WAS_CANCELLED
     The error with code 90051 is thrown when a statement was cancelled using Statement.cancel() or when the query timeout has been reached.
final public static  intSTRING_FORMAT_ERROR_1
     The error with code 90095 is thrown when calling the method STRINGDECODE with an invalid escape sequence.
final public static  intSUBQUERY_IS_NOT_SINGLE_COLUMN
     The error with code 90052 is thrown when a subquery that is used as a value contains more than one column.
final public static  intSUM_OR_AVG_ON_WRONG_DATATYPE_1
     The error with code 90015 is thrown when using an aggregate function with a data type that is not supported.
final public static  intSYNTAX_ERROR_1
     The error with code 42000 is thrown when trying to execute an invalid SQL statement.
final public static  intSYNTAX_ERROR_2
     The error with code 42001 is thrown when trying to execute an invalid SQL statement.
final public static  intTABLE_OR_VIEW_ALREADY_EXISTS_1
     The error with code 42101 is thrown when trying to create a table or view if an object with this name already exists.
final public static  intTABLE_OR_VIEW_NOT_FOUND_1
     The error with code 42102 is thrown when trying to query, modify or drop a table or view that does not exists in this schema and database.
final public static  intTIMESTAMP_CONSTANT_2
     The error with code 90011 is thrown when a text can not be converted to a timestamp constant.
final public static  intTIME_CONSTANT_2
     The error with code 90010 is thrown when a text can not be converted to a time constant.
final public static  intTRACE_CONNECTION_NOT_CLOSED
     The error with code 90018 is thrown when the connection was opened, but never closed.
final public static  intTRACE_FILE_ERROR_2
     The error with code 90034 is thrown when writing to the trace file failed, for example because the there is an I/O exception.
final public static  intTRANSACTION_NOT_FOUND_1
     The error with code 90129 is thrown when trying to commit a transaction that doesn't exist.
final public static  intTRIGGER_ALREADY_EXISTS_1
     The error with code 90041 is thrown when trying to create a trigger and there is already a trigger with that name.
final public static  intTRIGGER_NOT_FOUND_1
     The error with code 90042 is thrown when trying to drop a trigger that does not exist.
final public static  intUNKNOWN_DATA_TYPE_1
     The error with code 50004 is thrown when creating a table with an unsupported data type, or when the data type is unknown because parameters are used.
final public static  intUNKNOWN_MODE_1
     The error with code 90088 is thrown when trying to switch to an unknown mode.
final public static  intUNSUPPORTED_CIPHER
     The error with code 90055 is thrown when trying to open a database with an unsupported cipher algorithm.
final public static  intUNSUPPORTED_COMPRESSION_ALGORITHM_1
     The error with code 90103 is thrown when trying to use an unsupported compression algorithm.
final public static  intUNSUPPORTED_COMPRESSION_OPTIONS_1
     The error with code 90102 is thrown when trying to use unsupported options for the given compression algorithm.
final public static  intUNSUPPORTED_JAVA_VERSION
     The error with code 90092 is thrown when the source code is not compiled for the Java platform used.
final public static  intUNSUPPORTED_LOCK_METHOD_1
     The error with code 90060 is thrown when trying to use a file locking mechanism that is not supported.
final public static  intUNSUPPORTED_OUTER_JOIN_CONDITION_1
     The error with code 90136 is thrown when executing a query that used an unsupported outer join condition.
final public static  intUNSUPPORTED_SETTING_1
     The error with code 90113 is thrown when the database URL contains unsupported settings.
final public static  intURL_FORMAT_ERROR_2
     The error with code 90046 is thrown when trying to open a connection to a database using an unsupported URL format.
final public static  intUSER_ALREADY_EXISTS_1
     The error with code 90033 is thrown when trying to create a user or role if a user with this name already exists.
final public static  intUSER_DATA_TYPE_ALREADY_EXISTS_1
     The error with code 90119 is thrown when trying to create a domain if an object with this name already exists.
final public static  intUSER_DATA_TYPE_NOT_FOUND_1
     The error with code 90120 is thrown when trying to drop a domain that doesn't exists.
final public static  intUSER_NOT_FOUND_1
     The error with code 90032 is thrown when trying to drop or alter a user that does not exist.
final public static  intUSER_OR_ROLE_NOT_FOUND_1
     The error with code 90071 is thrown when trying to grant or revoke if no role or user with that name exists.
final public static  intVALUE_TOO_LARGE_FOR_PRECISION_1
     The error with code 90039 is thrown when trying to convert a decimal value to lower precision if the value is out of range for this precision.
final public static  intVALUE_TOO_LONG_2
     The error with code 90005 is thrown when trying to insert a value that is too long for the column.
final public static  intVIEW_ALREADY_EXISTS_1
     The error with code 90038 is thrown when trying to create a view if a view with this name already exists.
final public static  intVIEW_IS_INVALID_2
     The error with code 90109 is thrown when trying to run a query against an invalid view.
final public static  intVIEW_NOT_FOUND_1
     The error with code 90037 is thrown when trying to drop or alter a view that does not exist.
final public static  intWRONG_PASSWORD_FORMAT
     The error with code 90050 is thrown when trying to open an encrypted database, but not separating the file password from the user password.
final public static  intWRONG_USER_OR_PASSWORD
     The error with code 8004 is thrown when there is no such user registered in the database, when the user password does not match, or when the database encryption password does not match (if database encryption is used).
final public static  intWRONG_XID_FORMAT_1
     The error with code 90101 is thrown when the XA API detected unsupported transaction names.


Method Summary
public static  StringgetState(int errorCode)
    

Field Detail
ACCESS_DENIED_TO_CLASS_1
final public static int ACCESS_DENIED_TO_CLASS_1(Code)
The error with code 90134 is thrown when trying to load a Java class that is not part of the allowed classes. By default, all classes are allowed, but this can be changed using the system property h2.allowedClasses.



ADMIN_RIGHTS_REQUIRED
final public static int ADMIN_RIGHTS_REQUIRED(Code)
The error with code 90040 is thrown when a user that is not administrator tries to execute a statement that requires admin privileges.



AGGREGATE_NOT_FOUND_1
final public static int AGGREGATE_NOT_FOUND_1(Code)
The error with code 90132 is thrown when trying to drop a user defined aggregate function that doesn't exist. Example:
 DROP AGGREGATE UNKNOWN;
 



AMBIGUOUS_COLUMN_NAME_1
final public static int AMBIGUOUS_COLUMN_NAME_1(Code)
The error with code 90059 is thrown when a query contains a column that could belong to multiple tables. Example:
 CREATE TABLE PARENT(ID INT, NAME VARCHAR);
 CREATE TABLE CHILD(PID INT, NAME VARCHAR);
 SELECT ID, NAME FROM PARENT P, CHILD C WHERE P.ID = C.PID;
 



CANNOT_CHANGE_SETTING_WHEN_OPEN_1
final public static int CANNOT_CHANGE_SETTING_WHEN_OPEN_1(Code)
The error with code 90133 is thrown when trying to change a specific database property while the database is already open. The MVCC property needs to be set in the first connection (in the connection opening the database) and can not be changed later on.



CANNOT_DROP_2
final public static int CANNOT_DROP_2(Code)
The error with code 90107 is thrown when trying to drop an object because another object would become invalid. Example:
 CREATE TABLE COUNT(X INT);
 CREATE TABLE ITEMS(ID INT DEFAULT SELECT MAX(X)+1 FROM COUNT);
 DROP TABLE COUNT;
 



CANNOT_DROP_CURRENT_USER
final public static int CANNOT_DROP_CURRENT_USER(Code)
The error with code 90019 is thrown when trying to drop the current user. Example:
 DROP USER SA;
 



CANNOT_DROP_LAST_COLUMN
final public static int CANNOT_DROP_LAST_COLUMN(Code)
The error with code 90084 is thrown when trying to drop the last column of a table. Example:
 CREATE TABLE TEST(ID INT);
 ALTER TABLE TEST DROP COLUMN ID;
 



CANNOT_DROP_TABLE_1
final public static int CANNOT_DROP_TABLE_1(Code)
The error with code 90118 is thrown when trying to drop a table can not be dropped. Example:
 DROP TABLE INFORMATION_SCHEMA.SETTINGS;
 



CANNOT_MIX_INDEXED_AND_UNINDEXED_PARAMS
final public static int CANNOT_MIX_INDEXED_AND_UNINDEXED_PARAMS(Code)
The error with code 90123 is thrown when trying mix regular parameters and indexed parameters in the same statement. Example:
 SELECT ?, ?1 FROM DUAL;
 



CANNOT_TRUNCATE_1
final public static int CANNOT_TRUNCATE_1(Code)
The error with code 90106 is thrown when trying to truncate a table that can not be truncated. Tables with referential integrity constraints can not be truncated. Also, system tables and view can not be truncated. Example:
 TRUNCATE TABLE INFORMATION_SCHEMA.SETTINGS;
 



CAN_ONLY_ASSIGN_TO_VARIABLE_1
final public static int CAN_ONLY_ASSIGN_TO_VARIABLE_1(Code)
The error with code 90137 is thrown when trying to assign a value to something that is not a variable.
 SELECT AMOUNT, SET(@V, IFNULL(@V, 0)+AMOUNT) FROM TEST;
 



CHECK_CONSTRAINT_VIOLATED_1
final public static int CHECK_CONSTRAINT_VIOLATED_1(Code)
The error with code 23000 is thrown when a check constraint is violated. Example:
 CREATE TABLE TEST(ID INT CHECK ID>0);
 INSERT INTO TEST VALUES(0);
 



CLASS_NOT_FOUND_1
final public static int CLASS_NOT_FOUND_1(Code)
The error with code 90086 is thrown when a class can not be loaded because it is not in the classpath or because a related class is not in the classpath. Example:
 CREATE ALIAS TEST FOR "java.lang.invalid.Math.sqrt";
 



CLUSTER_ERROR_DATABASE_RUNS_ALONE
final public static int CLUSTER_ERROR_DATABASE_RUNS_ALONE(Code)
The error with code 90093 is thrown when trying to connect to a clustered database that runs in standalone mode. This can happen if clustering is not enabled on the database, or if one of the clients disabled clustering because it can not see the other cluster node.



CLUSTER_ERROR_DATABASE_RUNS_CLUSTERED_1
final public static int CLUSTER_ERROR_DATABASE_RUNS_CLUSTERED_1(Code)
The error with code 90094 is thrown when trying to connect to a clustered database that runs together with a different cluster node setting than what is used when trying to connect.



COLLATION_CHANGE_WITH_DATA_TABLE_1
final public static int COLLATION_CHANGE_WITH_DATA_TABLE_1(Code)
The error with code 90089 is thrown when trying to change the collation while there was already data in the database. The collation of the database must be set when the database is empty. Example:
 CREATE TABLE TEST(NAME VARCHAR PRIMARY KEY);
 INSERT INTO TEST VALUES('Hello', 'World');
 SET COLLATION DE;
 Collation cannot be changed because there is a data table: PUBLIC.TEST
 
Correct:
 SET COLLATION DE;
 CREATE TABLE TEST(NAME VARCHAR PRIMARY KEY);
 INSERT INTO TEST VALUES('Hello', 'World');
 



COLUMN_CONTAINS_NULL_VALUES_1
final public static int COLUMN_CONTAINS_NULL_VALUES_1(Code)
The error with code 90081 is thrown when trying to alter a column to not allow NULL, if there is already data in the table where this column is NULL. Example:
 CREATE TABLE TEST(ID INT);
 INSERT INTO TEST VALUES(NULL);
 ALTER TABLE TEST ALTER COLUMN ID VARCHAR NOT NULL;
 



COLUMN_COUNT_DOES_NOT_MATCH
final public static int COLUMN_COUNT_DOES_NOT_MATCH(Code)
The error with code 21002 is thrown when the number of columns does not match. Possible reasons are: for an INSERT or MERGE statement, the column count does not match the table or the column list specified. For a SELECT UNION statement, both queries return a different number of columns. For a constraint, the number of referenced and referencing columns does not match. Example:
 CREATE TABLE TEST(ID INT, NAME VARCHAR);
 INSERT INTO TEST VALUES('Hello');
 



COLUMN_IS_PART_OF_INDEX_1
final public static int COLUMN_IS_PART_OF_INDEX_1(Code)
The error with code 90075 is thrown when trying to alter a table and allow null for a column that is part of a primary key or hash index. Example:
 CREATE TABLE TEST(ID INT PRIMARY KEY);
 ALTER TABLE TEST ALTER COLUMN ID NULL;
 



COLUMN_MAY_BE_REFERENCED_1
final public static int COLUMN_MAY_BE_REFERENCED_1(Code)
The error with code 90083 is thrown when trying to drop a column that is part of a constraint. Example:
 CREATE TABLE TEST(ID INT, PID INT REFERENCES(ID));
 ALTER TABLE TEST DROP COLUMN PID;
 



COLUMN_MUST_NOT_BE_NULLABLE_1
final public static int COLUMN_MUST_NOT_BE_NULLABLE_1(Code)
The error with code 90023 is thrown when trying to set a primary key on a nullable column. Example:
 CREATE TABLE TEST(ID INT, NAME VARCHAR);
 ALTER TABLE TEST ADD CONSTRAINT PK PRIMARY KEY(ID);
 



COLUMN_NOT_FOUND_1
final public static int COLUMN_NOT_FOUND_1(Code)
The error with code 42122 is thrown when referencing an non-existing column. Example:
 CREATE TABLE TEST(ID INT);
 SELECT NAME FROM TEST;
 



COMMIT_ROLLBACK_NOT_ALLOWED
final public static int COMMIT_ROLLBACK_NOT_ALLOWED(Code)
The error with code 90058 is thrown when trying to call commit or rollback inside a trigger, or when trying to call a method inside a trigger that implicitly commits the current transaction, if an object is locked. This is not because it would release the lock too early.



COMPRESSION_ERROR
final public static int COMPRESSION_ERROR(Code)
The error with code 90104 is thrown when the data can not be de-compressed. Example:
 CALL EXPAND(X'00FF');
 



CONCURRENT_UPDATE_1
final public static int CONCURRENT_UPDATE_1(Code)
The error with code 90131 is thrown when using multi version concurrency control, and trying to update the same row from within two connections at the same time. Example:
 jdbc:h2:~/test;MVCC=TRUE
 Session 1:
 CREATE TABLE TEST(ID INT);
 INSERT INTO TEST VALUES(1);
 SET AUTOCOMMIT FALSE;
 UPDATE TEST SET ID = 2;
 Session 2:
 SET AUTOCOMMIT FALSE;
 UPDATE TEST SET ID = 3;
 



CONNECTION_BROKEN
final public static int CONNECTION_BROKEN(Code)
The error with code 90067 is thrown when the connection to the database is lost. A possible reason is that the connection has been closed due to a shutdown, or that the server is stopped.



CONSTANT_ALREADY_EXISTS_1
final public static int CONSTANT_ALREADY_EXISTS_1(Code)
The error with code 90114 is thrown when trying to create a constant if a constant with this name already exists. Example:
 CREATE CONSTANT TEST VALUE 1;
 CREATE CONSTANT TEST VALUE 1;
 



CONSTANT_NOT_FOUND_1
final public static int CONSTANT_NOT_FOUND_1(Code)
The error with code 90115 is thrown when trying to drop a constant that does not exists. Example:
 DROP CONSTANT UNKNOWN;
 



CONSTRAINT_ALREADY_EXISTS_1
final public static int CONSTRAINT_ALREADY_EXISTS_1(Code)
The error with code 90045 is thrown when trying to create a constraint if an object with this name already exists. Example:
 CREATE TABLE TEST(ID INT NOT NULL);
 ALTER TABLE TEST ADD CONSTRAINT PK PRIMARY KEY(ID);
 ALTER TABLE TEST ADD CONSTRAINT PK PRIMARY KEY(ID);
 



CONSTRAINT_NOT_FOUND_1
final public static int CONSTRAINT_NOT_FOUND_1(Code)
The error with code 90057 is thrown when trying to drop a constraint that does not exist. Example:
 CREATE TABLE TEST(ID INT);
 ALTER TABLE TEST DROP CONSTRAINT CID;
 



DATABASE_ALREADY_OPEN_1
final public static int DATABASE_ALREADY_OPEN_1(Code)
The error with code 90020 is thrown when trying to open a database in embedded mode if this database is already in use in another process (or in a different class loader). Multiple connections to the same database are supported in the following cases:
  • In embedded mode (URL of the form jdbc:h2:~/test) if all connections are opened within the same process and class loader.
  • In server and cluster mode (URL of the form jdbc:h2:tcp://localhost/test) using remote connections.
The mixed mode is also supported. This mode requires to start a server in the same process where the database is open in embedded mode.



DATABASE_CALLED_AT_SHUTDOWN
final public static int DATABASE_CALLED_AT_SHUTDOWN(Code)
The error with code 90121 is thrown when a database operation is started while the virtual machine exits (for example in a shutdown hook), or when the session is closed.



DATABASE_IS_IN_EXCLUSIVE_MODE
final public static int DATABASE_IS_IN_EXCLUSIVE_MODE(Code)
The error with code 90135 is thrown when trying to open a connection to a database that is currently open in exclusive mode. The exclusive mode is set using:
 SET EXCLUSIVE TRUE;
 



DATABASE_IS_NOT_PERSISTENT
final public static int DATABASE_IS_NOT_PERSISTENT(Code)
The error with code 90126 is thrown when trying to call the BACKUP statement for an in-memory database. Example:
 jdbc:h2:mem:
 BACKUP TO 'test.zip';
 



DATABASE_IS_READ_ONLY
final public static int DATABASE_IS_READ_ONLY(Code)
The error with code 90097 is thrown when trying to delete or update a database if it is open in read-only mode. Example:
 jdbc:h2:~/test;ACCESS_MODE_DATA=R
 CREATE TABLE TEST(ID INT);
 



DATABASE_NOT_FOUND_1
final public static int DATABASE_NOT_FOUND_1(Code)
The error with code 90013 is thrown when trying to open a database that does not exist using the flag IFEXISTS=TRUE, or when trying to access a database object with a catalog name that does not match the database name. Example:
 CREATE TABLE TEST(ID INT);
 SELECT XYZ.PUBLIC.TEST.ID FROM TEST;
 



DATA_CONVERSION_ERROR_1
final public static int DATA_CONVERSION_ERROR_1(Code)
The error with code 90021 is thrown when trying to convert a value to a data type where the conversion is undefined, or when an error occured trying to convert. Example:
 CALL CAST(DATE '2001-01-01' AS BOOLEAN);
 CALL CAST('CHF 99.95' AS INT);
 



DATE_CONSTANT_2
final public static int DATE_CONSTANT_2(Code)
The error with code 90009 is thrown when a text can not be converted to a date constant. Example:
 CALL DATE '2007-January-01';
 



DESERIALIZATION_FAILED_1
final public static int DESERIALIZATION_FAILED_1(Code)
The error with code 90027 is thrown when an object could not be de-serialized.



DIVISION_BY_ZERO_1
final public static int DIVISION_BY_ZERO_1(Code)
The error with code 22012 is thrown when trying to divide a value by zero. Example:
 CALL 1/0;
 



DRIVER_VERSION_ERROR_2
final public static int DRIVER_VERSION_ERROR_2(Code)
The error with code 90047 is thrown when trying to connect to a TCP server with an incompatible client.



DUPLICATE_COLUMN_NAME_1
final public static int DUPLICATE_COLUMN_NAME_1(Code)
The error with code 42121 is thrown when trying to create a table or insert into a table and use the same column name twice. Example:
 CREATE TABLE TEST(ID INT, ID INT);
 



DUPLICATE_KEY_1
final public static int DUPLICATE_KEY_1(Code)
The error with code 23001 is thrown when trying to insert a row that would violate a unique index or primary key. Example:
 CREATE TABLE TEST(ID INT PRIMARY KEY);
 INSERT INTO TEST VALUES(1);
 INSERT INTO TEST VALUES(1);
 



DUPLICATE_PROPERTY_1
final public static int DUPLICATE_PROPERTY_1(Code)
The error with code 90066 is thrown when the same property appears twice in the database URL or in the connection properties. Example:
 jdbc:h2:~/test;LOG=0;LOG=1
 



ERROR_ACCESSING_LINKED_TABLE_2
final public static int ERROR_ACCESSING_LINKED_TABLE_2(Code)
The error with code 90111 is thrown when an exception occured while accessing a linked table.



ERROR_CREATING_TRIGGER_OBJECT_3
final public static int ERROR_CREATING_TRIGGER_OBJECT_3(Code)
The error with code 90043 is thrown when there is an error initializing the trigger, for example because the class does not implement the Trigger interface. See the root cause for details. Example:
 CREATE TABLE TEST(ID INT);
 CREATE TRIGGER TRIGGER_A AFTER INSERT ON TEST
 CALL "java.lang.String";
 



ERROR_EXECUTING_TRIGGER_3
final public static int ERROR_EXECUTING_TRIGGER_3(Code)
The error with code 90044 is thrown when an exception or error occured while calling the triggers fire method. See the root cause for details.



ERROR_OPENING_DATABASE
final public static int ERROR_OPENING_DATABASE(Code)
The error with code 8000 is thrown when there was a problem trying to create a database lock. See the cause for details.



ERROR_SETTING_DATABASE_EVENT_LISTENER_2
final public static int ERROR_SETTING_DATABASE_EVENT_LISTENER_2(Code)
The error with code 90099 is thrown when an error occured trying to initialize the database event listener. Example:
 jdbc:h2:˜/test;DATABASE_EVENT_LISTENER='java.lang.String'
 



EXCEPTION_IN_FUNCTION
final public static int EXCEPTION_IN_FUNCTION(Code)
The error with code 90105 is thrown when an exception occured in a user defined method. Example:
 CREATE ALIAS SYS_PROP FOR "java.lang.System.getProperty";
 CALL SYS_PROP(NULL);
 



EXCEPTION_OPENING_PORT_2
final public static int EXCEPTION_OPENING_PORT_2(Code)
The error with code 90061 is thrown when trying to start a server if a server is already running on the same port. It could also be a firewall problem.



FEATURE_NOT_SUPPORTED
final public static int FEATURE_NOT_SUPPORTED(Code)
The error with code 50100 is thrown when calling an unsupported JDBC method. See the stack trace for details.



FILE_CORRUPTED_1
final public static int FILE_CORRUPTED_1(Code)
The error with code 90030 is thrown when the database engine has detected a checksum mismatch in the data or index. To solve this problem, restore a backup or use the Recovery tool (org.h2.tools.Recover).



FILE_CREATION_FAILED_1
final public static int FILE_CREATION_FAILED_1(Code)
The error with code 90062 is thrown when a directory or file could not be created. This can occur when trying to create a directory if a file with the same name already exists, or vice versa.



FILE_DELETE_FAILED_1
final public static int FILE_DELETE_FAILED_1(Code)
The error with code 90025 is thrown when a file could not be deleted, because it is still in use (only in Windows), or because an error occured when deleting.



FILE_ENCRYPTION_ERROR_1
final public static int FILE_ENCRYPTION_ERROR_1(Code)
The error with code 90049 is thrown when trying to open an encrypted database with the wrong file encryption password or algorithm.



FILE_NOT_FOUND_1
final public static int FILE_NOT_FOUND_1(Code)
The error with code 90124 is thrown when trying to access a file that doesn't exist. This can occur when trying to read a lob if the lob file has been deleted by another application.



FILE_RENAME_FAILED_2
final public static int FILE_RENAME_FAILED_2(Code)
The error with code 90024 is thrown when a file could not be renamed.



FILE_VERSION_ERROR_1
final public static int FILE_VERSION_ERROR_1(Code)
The error with code 90048 is thrown when the file header of a database files (*.db) does not match the expected version, or if it is corrupted.



FUNCTION_ALIAS_ALREADY_EXISTS_1
final public static int FUNCTION_ALIAS_ALREADY_EXISTS_1(Code)
The error with code 90076 is thrown when trying to create a function alias for a system function or for a function that is already defined. Example:
 CREATE ALIAS SQRT FOR "java.lang.Math.sqrt"
 



FUNCTION_ALIAS_NOT_FOUND_1
final public static int FUNCTION_ALIAS_NOT_FOUND_1(Code)
The error with code 90077 is thrown when trying to drop a system function or a function alias that does not exist. Example:
 DROP ALIAS SQRT;
 



FUNCTION_MUST_RETURN_RESULT_SET_1
final public static int FUNCTION_MUST_RETURN_RESULT_SET_1(Code)
The error with code 90000 is thrown when a function that does not return a result set was used in the FROM clause. Example:
 SELECT * FROM SIN(1);
 



FUNCTION_NOT_FOUND_1
final public static int FUNCTION_NOT_FOUND_1(Code)
The error with code 90022 is thrown when trying to call a unknown function. Example:
 CALL SPECIAL_SIN(10);
 



GENERAL_ERROR_1
final public static int GENERAL_ERROR_1(Code)
The error with code 50000 is thrown when something unexpected occurs, for example an internal stack overflow. For details about the problem, see the cause of the exception in the stack trace.



HEX_STRING_ODD_1
final public static int HEX_STRING_ODD_1(Code)
The error with code 90003 is thrown when trying to convert a String to a binary value. Two hex digits per byte are required. Example:
 CALL X'00023';
 Hexadecimal string with odd number of characters: 00023
 
Correct:
 CALL X'000023';
 



HEX_STRING_WRONG_1
final public static int HEX_STRING_WRONG_1(Code)
The error with code 90004 is thrown when trying to convert a text to binary, but the expression contains a non-hexadecimal character. Example:
 CALL X'ABCDEFGH';
 CALL CAST('ABCDEFGH' AS BINARY);
 
Conversion from text to binary is supported, but the text must represent the hexadecimal encoded bytes.



INDEX_ALREADY_EXISTS_1
final public static int INDEX_ALREADY_EXISTS_1(Code)
The error with code 42111 is thrown when trying to create an index if an index with the same name already exists. Example:
 CREATE TABLE TEST(ID INT, NAME VARCHAR);
 CREATE INDEX IDX_ID ON TEST(ID);
 CREATE TABLE ADDRESS(ID INT);
 CREATE INDEX IDX_ID ON ADDRESS(ID);
 



INDEX_BELONGS_TO_CONSTRAINT_1
final public static int INDEX_BELONGS_TO_CONSTRAINT_1(Code)
The error with code 90085 is thrown when trying to manually drop an index that was generated by the system because of a unique constraint.
 CREATE TABLE TEST(ID INT, CONSTRAINT UID UNIQUE(ID));
 DROP INDEX UID_INDEX_0;
 Index UID_INDEX_0 belongs to a constraint
 
Correct:
 ALTER TABLE TEST DROP CONSTRAINT UID;
 



INDEX_NOT_FOUND_1
final public static int INDEX_NOT_FOUND_1(Code)
The error with code 42112 is thrown when trying to drop or reference an index that does not exist. Example:
 DROP INDEX ABC;
 



INVALID_CLASS_2
final public static int INVALID_CLASS_2(Code)
The error with code 90125 is thrown when PreparedStatement.setBigDecimal is called with object that extends the class BigDecimal, and the system property h2.allowBigDecimalExtensions is not set. Using extensions of BigDecimal is dangerous because the database relies on the behavior of BigDecimal.
 BigDecimal bd = new MyDecimal("$10.3");
 prep.setBigDecimal(1, bd);
 Invalid class, expected java.math.BigDecimal but got MyDecimal
 
Correct:
 BigDecimal bd = new BigDecimal("10.3");
 prep.setBigDecimal(1, bd);
 



INVALID_PARAMETER_COUNT_2
final public static int INVALID_PARAMETER_COUNT_2(Code)
The error with code 7001 is thrown when trying to call a function with the wrong number of parameters. Example:
 CALL ABS(1, 2)
 



INVALID_USE_OF_AGGREGATE_FUNCTION_1
final public static int INVALID_USE_OF_AGGREGATE_FUNCTION_1(Code)
The error with code 90054 is thrown when an aggregate function is used where it is not allowed. Example:
 CREATE TABLE TEST(ID INT);
 INSERT INTO TEST VALUES(1), (2);
 SELECT MAX(ID) FROM TEST WHERE ID = MAX(ID) GROUP BY ID;
 



INVALID_VALUE_2
final public static int INVALID_VALUE_2(Code)
The error with code 90008 is thrown when trying to use a value that is not valid for the given operation. Example:
 CREATE SEQUENCE TEST INCREMENT 0;
 



IO_EXCEPTION_1
final public static int IO_EXCEPTION_1(Code)
The error with code 90028 is thrown when an input / output error occured. For more information, see the root cause of the exception.



IO_EXCEPTION_2
final public static int IO_EXCEPTION_2(Code)
The error with code 90031 is thrown when an input / output error occured. For more information, see the root cause of the exception.



LIKE_ESCAPE_ERROR_1
final public static int LIKE_ESCAPE_ERROR_1(Code)
The error with code 22025 is thrown when using an invalid escape character sequence for LIKE or REGEXP. Example:
 CALL 'Hello' LIKE '1+' ESCAPE '+';
 



LITERALS_ARE_NOT_ALLOWED
final public static int LITERALS_ARE_NOT_ALLOWED(Code)
The error with code 90116 is thrown when trying use a literal in a SQL statement if literals are disabled. If literals are disabled, use PreparedStatement and parameters instead of literals in the SQL statement. Example:
 SET ALLOW_LITERALS NONE;
 CALL 1+1;
 



LOCK_TIMEOUT_1
final public static int LOCK_TIMEOUT_1(Code)
The error with code 50200 is thrown when another connection locked an object longer than the lock timeout set for this connection, or when a deadlock occured. Example:
 CREATE TABLE TEST(ID INT);
 -- connection 1:
 SET AUTOCOMMIT FALSE;
 INSERT INTO TEST VALUES(1);
 -- connection 2:
 SET AUTOCOMMIT FALSE;
 INSERT INTO TEST VALUES(1);
 



METHOD_NOT_ALLOWED_FOR_PREPARED_STATEMENT
final public static int METHOD_NOT_ALLOWED_FOR_PREPARED_STATEMENT(Code)
The error with code 90130 is thrown when an execute method of PreparedStatement was called with a SQL statement. This is not allowed according to the JDBC specification. Instead, use an execute method of Statement. Example:
 PreparedStatement prep = conn.prepareStatement("SELECT * FROM TEST");
 prep.execute("DELETE FROM TEST");
 
Correct:
 Statement stat = conn.createStatement();
 stat.execute("DELETE FROM TEST");
 



METHOD_NOT_ALLOWED_FOR_QUERY
final public static int METHOD_NOT_ALLOWED_FOR_QUERY(Code)
The error with code 90001 is thrown when Statement.executeUpdate() was called for a SELECT statement. This is not allowed according to the JDBC specs.



METHOD_NOT_FOUND_1
final public static int METHOD_NOT_FOUND_1(Code)
The error with code 90087 is thrown when the specified method was not found in the class. Example:
 CREATE ALIAS TEST FOR "java.lang.Math.test";
 



METHOD_ONLY_ALLOWED_FOR_QUERY
final public static int METHOD_ONLY_ALLOWED_FOR_QUERY(Code)
The error with code 90002 is thrown when Statement.executeQuery() was called for a statement that does not return a result set (for example, an UPDATE statement). This is not allowed according to the JDBC specs.



MUST_GROUP_BY_COLUMN_1
final public static int MUST_GROUP_BY_COLUMN_1(Code)
The error with code 90016 is thrown when a column was used in the expression list or the order by clause of a group or aggregate query, and that column is not in the GROUP BY clause. Example:
 CREATE TABLE TEST(ID INT, NAME VARCHAR);
 INSERT INTO TEST VALUES(1, 'Hello'), (2, 'World');
 SELECT ID, MAX(NAME) FROM TEST;
 Column ID must be in the GROUP BY list.
 
Correct:
 SELECT ID, MAX(NAME) FROM TEST GROUP BY ID;
 



NOT_ENOUGH_RIGHTS_FOR_1
final public static int NOT_ENOUGH_RIGHTS_FOR_1(Code)
The error with code 90096 is thrown when trying to perform an operation with a non-admin user if the user does not have enough rights.



NOT_ON_UPDATABLE_ROW
final public static int NOT_ON_UPDATABLE_ROW(Code)
The error with code 90029 is thrown when calling ResultSet.deleteRow(), insertRow(), or updateRow() when the current row is not updatable. Example:
 ResultSet rs = stat.executeQuery("SELECT * FROM TEST");
 rs.next();
 rs.insertRow();
 



NO_DATA_AVAILABLE
final public static int NO_DATA_AVAILABLE(Code)
The error with code 2000 is thrown when the result set is positioned before the first or after the last row, or not on a valid row for the given operation. Example:
 ResultSet rs = stat.executeQuery("SELECT * FROM DUAL");
 rs.getString(1);
 
Correct:
 ResultSet rs = stat.executeQuery("SELECT * FROM DUAL");
 rs.next();
 rs.getString(1);
 



NO_DEFAULT_SET_1
final public static int NO_DEFAULT_SET_1(Code)
The error with code 90056 is thrown when updating or deleting from a table with a foreign key constraint that should set the default value, but there is no default value defined. Example:
 CREATE TABLE TEST(ID INT, PARENT INT);
 INSERT INTO TEST VALUES(1, 1), (2, 1);
 ALTER TABLE TEST ADD CONSTRAINT TEST_ID_PARENT
 FOREIGN KEY(PARENT) REFERENCES(ID) ON DELETE SET DEFAULT;
 DELETE FROM TEST WHERE ID=1;
 



NO_DISK_SPACE_AVAILABLE
final public static int NO_DISK_SPACE_AVAILABLE(Code)
The error with code 90100 is thrown when there is no more space available on the device where the database files are stored.



NULL_NOT_ALLOWED
final public static int NULL_NOT_ALLOWED(Code)
The error with code 90006 is thrown when trying to insert NULL into a column that does not allow NULL. Example:
 CREATE TABLE TEST(ID INT, NAME VARCHAR NOT NULL);
 INSERT INTO TEST(ID) VALUES(1);
 



NUMERIC_VALUE_OUT_OF_RANGE
final public static int NUMERIC_VALUE_OUT_OF_RANGE(Code)
The error with code 22003 is thrown when a value is out of range when converting to another data type. Example:
 CALL CAST(1000000 AS TINYINT);
 



OBJECT_CLOSED
final public static int OBJECT_CLOSED(Code)
The error with code 90007 is thrown when trying to call a JDBC method on an object that has been closed.



OPERATION_NOT_SUPPORTED_WITH_VIEWS_2
final public static int OPERATION_NOT_SUPPORTED_WITH_VIEWS_2(Code)
The error with code 90122 is thrown when trying to altering, adding or dropping columns of a table that has views. Example:
 CREATE TABLE TEST(ID INT);
 CREATE VIEW TEST_VIEW AS SELECT * FROM TEST;
 ALTER TABLE TEST ADD COLUMN NAME VARCHAR;
 



ORDER_BY_NOT_IN_RESULT
final public static int ORDER_BY_NOT_IN_RESULT(Code)
The error with code 90068 is thrown when the given expression that is used in the ORDER BY is not in the result list. This is required for distinct queries, otherwise the result would be ambiguous.
 CREATE TABLE TEST(ID INT, NAME VARCHAR);
 INSERT INTO TEST VALUES(2, 'Hello'), (1, 'Hello');
 SELECT DISTINCT NAME FROM TEST ORDER BY ID;
 Order by expression ID must be in the result list in this case
 
Correct:
 SELECT DISTINCT ID, NAME FROM TEST ORDER BY ID;
 



OVERFLOW_FOR_TYPE_1
final public static int OVERFLOW_FOR_TYPE_1(Code)
The error with code 90110 is thrown when the result of the calculation does not fit in the given data type. Example:
 CALL -CAST(-128 AS TINYINT);
 



PARAMETER_NOT_SET_1
final public static int PARAMETER_NOT_SET_1(Code)
The error with code 90012 is thrown when trying to execute a statement with an parameter. Example:
 CALL SIN(?);
 



PARSE_ERROR_1
final public static int PARSE_ERROR_1(Code)
The error with code 90014 is thrown when trying to parse a date with an unsupported format string, or when the date can not be parsed. Example:
 CALL PARSEDATETIME('2001 January', 'yyyy mm');
 



REFERENTIAL_INTEGRITY_VIOLATED_CHILD_EXISTS_1
final public static int REFERENTIAL_INTEGRITY_VIOLATED_CHILD_EXISTS_1(Code)
The error with code 23003 is thrown when trying to delete or update a row when this would violate a referential constraint, because there is a child row that would become an orphan. Example:
 CREATE TABLE PARENT(ID INT);
 CREATE TABLE CHILD(P_ID INT REFERENCES PARENT(ID));
 INSERT INTO PARENT VALUES(1);
 INSERT INTO CHILD VALUES(1);
 DELETE FROM PARENT;
 



REFERENTIAL_INTEGRITY_VIOLATED_PARENT_MISSING_1
final public static int REFERENTIAL_INTEGRITY_VIOLATED_PARENT_MISSING_1(Code)
The error with code 23002 is thrown when trying to insert or update a row that would violate a referential constraint, because the referenced row does not exist. Example:
 CREATE TABLE PARENT(ID INT);
 CREATE TABLE CHILD(P_ID INT REFERENCES PARENT(ID));
 INSERT INTO CHILD VALUES(1);
 



REMOTE_CONNECTION_NOT_ALLOWED
final public static int REMOTE_CONNECTION_NOT_ALLOWED(Code)
The error with code 90117 is thrown when trying to connect to a TCP server from another machine, if remote connections are not allowed. To allow remote connections, start the TCP server using the option -tcpAllowOthers true as in:
 java org.h2.tools.Server -tcp -tcpAllowOthers true
 
Or, when starting the server from an application, use:
 Server server = Server.createTcpServer(new String[] { 
 "-tcpAllowOthers", "true" });
 server.start();
 



RESULT_SET_NOT_SCROLLABLE
final public static int RESULT_SET_NOT_SCROLLABLE(Code)
The error with code 90128 is thrown when trying to call a method of the ResultSet that is only supported for scrollable result sets, and the result set is not scrollable. Example:
 rs.first();
 



RESULT_SET_NOT_UPDATABLE
final public static int RESULT_SET_NOT_UPDATABLE(Code)
The error with code 90127 is thrown when trying to update or delete a row in a result set if the result set is not updatable.



RIGHT_NOT_FOUND
final public static int RIGHT_NOT_FOUND(Code)
The error with code 90073 is thrown when trying to revoke a right that does not or no longer exist. Example:
 CREATE USER TEST_USER PASSWORD 'abc';
 REVOKE SELECT ON TEST FROM TEST_USER;
 



ROLES_AND_RIGHT_CANNOT_BE_MIXED
final public static int ROLES_AND_RIGHT_CANNOT_BE_MIXED(Code)
The error with code 90072 is thrown when trying to grant or revoke if no role or user with that name exists. Example:
 GRANT SELECT, TEST_ROLE ON TEST TO SA;
 



ROLE_ALREADY_EXISTS_1
final public static int ROLE_ALREADY_EXISTS_1(Code)
The error with code 90069 is thrown when trying to create a role if an object with this name already exists. Example:
 CREATE ROLE TEST_ROLE;
 CREATE ROLE TEST_ROLE;
 



ROLE_ALREADY_GRANTED_1
final public static int ROLE_ALREADY_GRANTED_1(Code)
The error with code 90074 is thrown when trying to grant a role that has already been granted. Example:
 CREATE ROLE TEST_ROLE;
 GRANT TEST_ROLE TO SA;
 GRANT TEST_ROLE TO SA;
 



ROLE_CAN_NOT_BE_DROPPED_1
final public static int ROLE_CAN_NOT_BE_DROPPED_1(Code)
The error with code 90091 is thrown when trying to drop the role PUBLIC. Example:
 DROP ROLE PUBLIC;
 



ROLE_NOT_FOUND_1
final public static int ROLE_NOT_FOUND_1(Code)
The error with code 90070 is thrown when trying to drop or grant a role that does not exists. Example:
 DROP ROLE TEST_ROLE_2;
 



ROW_NOT_FOUND_WHEN_DELETING_1
final public static int ROW_NOT_FOUND_WHEN_DELETING_1(Code)
The error with code 90112 is thrown when a row was deleted twice while locking was disabled. This is an intern exception that should never be thrown to the application, because such deleted should be detected and the resulting exception ignored inside the database engine.
 Row not found when trying to delete from index UID_INDEX_0
 



SAVEPOINT_IS_INVALID_1
final public static int SAVEPOINT_IS_INVALID_1(Code)
The error with code 90063 is thrown when trying to rollback to a savepoint that is not defined. Example:
 ROLLBACK TO SAVEPOINT S_UNKNOWN;
 



SAVEPOINT_IS_NAMED
final public static int SAVEPOINT_IS_NAMED(Code)
The error with code 90065 is thrown when Savepoint.getSavepointId() is called on a named savepoint. Example:
 Savepoint sp = conn.setSavepoint("Joe");
 sp.getSavepointId();
 



SAVEPOINT_IS_UNNAMED
final public static int SAVEPOINT_IS_UNNAMED(Code)
The error with code 90064 is thrown when Savepoint.getSavepointName() is called on an unnamed savepoint. Example:
 Savepoint sp = conn.setSavepoint();
 sp.getSavepointName();
 



SCALAR_SUBQUERY_CONTAINS_MORE_THAN_ONE_ROW
final public static int SCALAR_SUBQUERY_CONTAINS_MORE_THAN_ONE_ROW(Code)
The error with code 90053 is thrown when a subquery that is used as a value contains more than one row. Example:
 CREATE TABLE TEST(ID INT, NAME VARCHAR);
 INSERT INTO TEST VALUES(1, 'Hello'), (1, 'World');
 SELECT X, (SELECT NAME FROM TEST WHERE ID=X) FROM DUAL;
 



SCHEMA_ALREADY_EXISTS_1
final public static int SCHEMA_ALREADY_EXISTS_1(Code)
The error with code 90078 is thrown when trying to create a schema if an object with this name already exists. Example:
 CREATE SCHEMA TEST_SCHEMA;
 CREATE SCHEMA TEST_SCHEMA;
 



SCHEMA_CAN_NOT_BE_DROPPED_1
final public static int SCHEMA_CAN_NOT_BE_DROPPED_1(Code)
The error with code 90090 is thrown when trying to drop a schema that may not be dropped (the schema PUBLIC and the schema INFORMATION_SCHEMA). Example:
 DROP SCHEMA PUBLIC;
 



SCHEMA_NAME_MUST_MATCH
final public static int SCHEMA_NAME_MUST_MATCH(Code)
The error with code 90080 is thrown when trying to rename a object to a different schema, or when trying to create a related object in another schema. Example:
 CREATE SCHEMA TEST_SCHEMA;
 CREATE TABLE TEST(ID INT);
 CREATE INDEX TEST_ID ON TEST(ID);
 ALTER INDEX TEST_ID RENAME TO TEST_SCHEMA.IDX_TEST_ID;
 



SCHEMA_NOT_FOUND_1
final public static int SCHEMA_NOT_FOUND_1(Code)
The error with code 90079 is thrown when trying to drop a schema that does not exist. Example:
 DROP SCHEMA UNKNOWN;
 



SECOND_PRIMARY_KEY
final public static int SECOND_PRIMARY_KEY(Code)
The error with code 90017 is thrown when trying to define a second primary key constraint for this table. Example:
 CREATE TABLE TEST(ID INT PRIMARY KEY, NAME VARCHAR);
 ALTER TABLE TEST ADD CONSTRAINT PK PRIMARY KEY(NAME);
 



SEQUENCE_ALREADY_EXISTS_1
final public static int SEQUENCE_ALREADY_EXISTS_1(Code)
The error with code 90035 is thrown when trying to create a sequence if a sequence with this name already exists. Example:
 CREATE SEQUENCE TEST_SEQ;
 CREATE SEQUENCE TEST_SEQ;
 



SEQUENCE_BELONGS_TO_A_TABLE_1
final public static int SEQUENCE_BELONGS_TO_A_TABLE_1(Code)
The error with code 90082 is thrown when trying to drop a system generated sequence.



SEQUENCE_NOT_FOUND_1
final public static int SEQUENCE_NOT_FOUND_1(Code)
The error with code 90036 is thrown when trying to access a sequence that does not exist. Example:
 SELECT NEXT VALUE FOR SEQUENCE XYZ;
 



SERIALIZATION_FAILED_1
final public static int SERIALIZATION_FAILED_1(Code)
The error with code 90026 is thrown when an object could not be serialized.



SIMULATED_POWER_OFF
final public static int SIMULATED_POWER_OFF(Code)
The error with code 90098 is thrown when the self-destruction counter has reached zero. This counter is only used for recovery testing, and not set in normal operation.



STATEMENT_WAS_CANCELLED
final public static int STATEMENT_WAS_CANCELLED(Code)
The error with code 90051 is thrown when a statement was cancelled using Statement.cancel() or when the query timeout has been reached. Examples:
 stat.setQueryTimeout(1);
 stat.cancel();
 



STRING_FORMAT_ERROR_1
final public static int STRING_FORMAT_ERROR_1(Code)
The error with code 90095 is thrown when calling the method STRINGDECODE with an invalid escape sequence. Only Java style escape sequences and Java properties file escape sequences are supported. Example:
 CALL STRINGDECODE('\i');
 



SUBQUERY_IS_NOT_SINGLE_COLUMN
final public static int SUBQUERY_IS_NOT_SINGLE_COLUMN(Code)
The error with code 90052 is thrown when a subquery that is used as a value contains more than one column. Example:
 CREATE TABLE TEST(ID INT);
 INSERT INTO TEST VALUES(1), (2);
 SELECT * FROM TEST WHERE ID IN (SELECT 1, 2 FROM DUAL);
 
Correct:
 CREATE TABLE TEST(ID INT);
 INSERT INTO TEST VALUES(1), (2);
 SELECT * FROM TEST WHERE ID IN (1, 2);
 



SUM_OR_AVG_ON_WRONG_DATATYPE_1
final public static int SUM_OR_AVG_ON_WRONG_DATATYPE_1(Code)
The error with code 90015 is thrown when using an aggregate function with a data type that is not supported. Example:
 SELECT SUM('Hello') FROM DUAL;
 



SYNTAX_ERROR_1
final public static int SYNTAX_ERROR_1(Code)
The error with code 42000 is thrown when trying to execute an invalid SQL statement. Example:
 CREATE ALIAS REMAINDER FOR "IEEEremainder";
 



SYNTAX_ERROR_2
final public static int SYNTAX_ERROR_2(Code)
The error with code 42001 is thrown when trying to execute an invalid SQL statement. Example:
 CREATE TABLE TEST(ID INT);
 INSERT INTO TEST(1);
 



TABLE_OR_VIEW_ALREADY_EXISTS_1
final public static int TABLE_OR_VIEW_ALREADY_EXISTS_1(Code)
The error with code 42101 is thrown when trying to create a table or view if an object with this name already exists. Example:
 CREATE TABLE TEST(ID INT);
 CREATE TABLE TEST(ID INT PRIMARY KEY);
 



TABLE_OR_VIEW_NOT_FOUND_1
final public static int TABLE_OR_VIEW_NOT_FOUND_1(Code)
The error with code 42102 is thrown when trying to query, modify or drop a table or view that does not exists in this schema and database. A common cause is that the wrong database was opened. Example:
 SELECT * FROM ABC;
 



TIMESTAMP_CONSTANT_2
final public static int TIMESTAMP_CONSTANT_2(Code)
The error with code 90011 is thrown when a text can not be converted to a timestamp constant. Example:
 CALL TIMESTAMP '2001-02-30 12:00:00';
 



TIME_CONSTANT_2
final public static int TIME_CONSTANT_2(Code)
The error with code 90010 is thrown when a text can not be converted to a time constant. Example:
 CALL TIME '14:61:00';
 



TRACE_CONNECTION_NOT_CLOSED
final public static int TRACE_CONNECTION_NOT_CLOSED(Code)
The error with code 90018 is thrown when the connection was opened, but never closed. In the finalizer of the connection, this forgotten close was detected and the connection was closed automatically, but relying on the finalizer is not good practice as it is not guaranteed and behavior is virtual machine dependent. The application should close the connection. This exception only appears in the .trace.db file. Example:
 Connection conn;
 conn = DriverManager.getConnection("jdbc:h2:˜/test");
 conn = null;
 The connection was not closed by the application and is 
 garbage collected
 
Correct:
 conn.close();
 



TRACE_FILE_ERROR_2
final public static int TRACE_FILE_ERROR_2(Code)
The error with code 90034 is thrown when writing to the trace file failed, for example because the there is an I/O exception. This message is printed to System.out, but only once.



TRANSACTION_NOT_FOUND_1
final public static int TRANSACTION_NOT_FOUND_1(Code)
The error with code 90129 is thrown when trying to commit a transaction that doesn't exist. Example:
 PREPARE COMMIT ABC;
 COMMIT TRANSACTION TEST;
 



TRIGGER_ALREADY_EXISTS_1
final public static int TRIGGER_ALREADY_EXISTS_1(Code)
The error with code 90041 is thrown when trying to create a trigger and there is already a trigger with that name.
 CREATE TABLE TEST(ID INT);
 CREATE TRIGGER TRIGGER_A AFTER INSERT ON TEST
 CALL "org.h2.samples.TriggerSample$MyTrigger";
 CREATE TRIGGER TRIGGER_A AFTER INSERT ON TEST
 CALL "org.h2.samples.TriggerSample$MyTrigger";
 



TRIGGER_NOT_FOUND_1
final public static int TRIGGER_NOT_FOUND_1(Code)
The error with code 90042 is thrown when trying to drop a trigger that does not exist. Example:
 DROP TRIGGER TRIGGER_XYZ;
 



UNKNOWN_DATA_TYPE_1
final public static int UNKNOWN_DATA_TYPE_1(Code)
The error with code 50004 is thrown when creating a table with an unsupported data type, or when the data type is unknown because parameters are used. Example:
 CREATE TABLE TEST(ID VERYSMALLINT);
 



UNKNOWN_MODE_1
final public static int UNKNOWN_MODE_1(Code)
The error with code 90088 is thrown when trying to switch to an unknown mode. Example:
 SET MODE UNKNOWN;
 



UNSUPPORTED_CIPHER
final public static int UNSUPPORTED_CIPHER(Code)
The error with code 90055 is thrown when trying to open a database with an unsupported cipher algorithm. Supported are AES and XTEA. Example:
 jdbc:h2:~/test;CIPHER=DES
 



UNSUPPORTED_COMPRESSION_ALGORITHM_1
final public static int UNSUPPORTED_COMPRESSION_ALGORITHM_1(Code)
The error with code 90103 is thrown when trying to use an unsupported compression algorithm. Example:
 CALL COMPRESS(STRINGTOUTF8(SPACE(100)), 'BZIP');
 



UNSUPPORTED_COMPRESSION_OPTIONS_1
final public static int UNSUPPORTED_COMPRESSION_OPTIONS_1(Code)
The error with code 90102 is thrown when trying to use unsupported options for the given compression algorithm. Example:
 CALL COMPRESS(STRINGTOUTF8(SPACE(100)), 'DEFLATE l 10');
 
Correct:
 CALL COMPRESS(STRINGTOUTF8(SPACE(100)), 'DEFLATE l 9');
 



UNSUPPORTED_JAVA_VERSION
final public static int UNSUPPORTED_JAVA_VERSION(Code)
The error with code 90092 is thrown when the source code is not compiled for the Java platform used. At runtime, the existence of the class java.sql.Savepoint is checked. To run this database in JDK 1.3, it is first required to switch the source code to JDK 1.3 using ant codeswitchJdk13.



UNSUPPORTED_LOCK_METHOD_1
final public static int UNSUPPORTED_LOCK_METHOD_1(Code)
The error with code 90060 is thrown when trying to use a file locking mechanism that is not supported. Currently only FILE (the default) and SOCKET are supported Example:
 jdbc:h2:~/test;FILE_LOCK=LDAP
 



UNSUPPORTED_OUTER_JOIN_CONDITION_1
final public static int UNSUPPORTED_OUTER_JOIN_CONDITION_1(Code)
The error with code 90136 is thrown when executing a query that used an unsupported outer join condition. Example:
 SELECT * FROM DUAL A LEFT JOIN DUAL B ON B.X=(SELECT MAX(X) FROM DUAL);
 



UNSUPPORTED_SETTING_1
final public static int UNSUPPORTED_SETTING_1(Code)
The error with code 90113 is thrown when the database URL contains unsupported settings. Example:
 jdbc:h2:~/test;UNKNOWN=TRUE
 



URL_FORMAT_ERROR_2
final public static int URL_FORMAT_ERROR_2(Code)
The error with code 90046 is thrown when trying to open a connection to a database using an unsupported URL format. Please see the documentation on the supported URL format and examples. Example:
 jdbc:h2:;;
 



USER_ALREADY_EXISTS_1
final public static int USER_ALREADY_EXISTS_1(Code)
The error with code 90033 is thrown when trying to create a user or role if a user with this name already exists. Example:
 CREATE USER TEST_USER;
 CREATE USER TEST_USER;
 



USER_DATA_TYPE_ALREADY_EXISTS_1
final public static int USER_DATA_TYPE_ALREADY_EXISTS_1(Code)
The error with code 90119 is thrown when trying to create a domain if an object with this name already exists. Example:
 CREATE DOMAIN EMAIL AS VARCHAR CHECK LOCATE('@', VALUE) > 0;
 CREATE DOMAIN EMAIL AS VARCHAR CHECK LOCATE('@', VALUE) > 0;
 



USER_DATA_TYPE_NOT_FOUND_1
final public static int USER_DATA_TYPE_NOT_FOUND_1(Code)
The error with code 90120 is thrown when trying to drop a domain that doesn't exists. Example:
 DROP DOMAIN UNKNOWN;
 



USER_NOT_FOUND_1
final public static int USER_NOT_FOUND_1(Code)
The error with code 90032 is thrown when trying to drop or alter a user that does not exist. Example:
 DROP USER TEST_USER;
 



USER_OR_ROLE_NOT_FOUND_1
final public static int USER_OR_ROLE_NOT_FOUND_1(Code)
The error with code 90071 is thrown when trying to grant or revoke if no role or user with that name exists. Example:
 GRANT SELECT ON TEST TO UNKNOWN;
 



VALUE_TOO_LARGE_FOR_PRECISION_1
final public static int VALUE_TOO_LARGE_FOR_PRECISION_1(Code)
The error with code 90039 is thrown when trying to convert a decimal value to lower precision if the value is out of range for this precision. Example:
 SELECT * FROM TABLE(X DECIMAL(2, 2) = (123.34));
 



VALUE_TOO_LONG_2
final public static int VALUE_TOO_LONG_2(Code)
The error with code 90005 is thrown when trying to insert a value that is too long for the column. Example:
 CREATE TABLE TEST(ID INT, NAME VARCHAR(2));
 INSERT INTO TEST VALUES(1, 'Hello');
 



VIEW_ALREADY_EXISTS_1
final public static int VIEW_ALREADY_EXISTS_1(Code)
The error with code 90038 is thrown when trying to create a view if a view with this name already exists. Example:
 CREATE VIEW DUMMY AS SELECT * FROM DUAL;
 CREATE VIEW DUMMY AS SELECT * FROM DUAL;
 



VIEW_IS_INVALID_2
final public static int VIEW_IS_INVALID_2(Code)
The error with code 90109 is thrown when trying to run a query against an invalid view. Example:
 CREATE FORCE VIEW TEST_VIEW AS SELECT * FROM TEST;
 SELECT * FROM TEST_VIEW;
 



VIEW_NOT_FOUND_1
final public static int VIEW_NOT_FOUND_1(Code)
The error with code 90037 is thrown when trying to drop or alter a view that does not exist. Example:
 DROP VIEW XYZ;
 



WRONG_PASSWORD_FORMAT
final public static int WRONG_PASSWORD_FORMAT(Code)
The error with code 90050 is thrown when trying to open an encrypted database, but not separating the file password from the user password. The file password is specified in the password field, before the user password. A single space needs to be added between the file password and the user password; the file password itself may not contain spaces. File passwords (as well as user passwords) are case sensitive. Example:
 String url = "jdbc:h2:˜/test;CIPHER=AES";
 String passwords = "filePasswordUserPassword";
 DriverManager.getConnection(url, "sa", pwds);
 
Correct:
 String url = "jdbc:h2:˜/test;CIPHER=AES";
 String passwords = "filePassword userPassword";
 DriverManager.getConnection(url, "sa", pwds);
 



WRONG_USER_OR_PASSWORD
final public static int WRONG_USER_OR_PASSWORD(Code)
The error with code 8004 is thrown when there is no such user registered in the database, when the user password does not match, or when the database encryption password does not match (if database encryption is used).



WRONG_XID_FORMAT_1
final public static int WRONG_XID_FORMAT_1(Code)
The error with code 90101 is thrown when the XA API detected unsupported transaction names. This can happen when mixing application generated transaction names and transaction names generated by this databases XAConnection API.





Method Detail
getState
public static String getState(int errorCode)(Code)
INTERNAL



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.