| java.lang.Object org.h2.message.Message
Message | public class Message (Code) | | Messages used in the database engine.
Use the PropertiesToUTF8 tool to translate properties files to UTF-8 and back.
If the word 'SQL' appears then the whole SQL statement must be a parameter,
otherwise this may be added: '; SQL statement: ' + sql
|
Method Summary | |
public static SQLException | addSQL(SQLException e, String sql) | public static SQLException | convert(Throwable e) | public static SQLException | convertIOException(IOException e, String message) | public static IOException | convertToIOException(Throwable e) | public static InternalException | convertToInternal(Exception e) | public static Error | getInternalError(String s) | public static Error | getInternalError(String s, Exception e) | public static Error | getInternalError() | public static JdbcSQLException | getInvalidValueException(String value, String param) | public static JdbcSQLException | getSQLException(int sqlState, String p1) Gets the SQL Exception object for a specific SQLState. | public static JdbcSQLException | getSQLException(int errorCode, String[] param, Throwable cause) | public static JdbcSQLException | getSQLException(int errorCode, String[] param) | public static JdbcSQLException | getSQLException(int sqlstate) Gets the SQL Exception object for a specific SQLState. | public static SQLException | getSyntaxError(String sql, int index) | public static SQLException | getSyntaxError(String sql, int index, String expected) | public static JdbcSQLException | getUnsupportedException() | public static String | translate(String key, String[] param) |
getInternalError | public static Error getInternalError()(Code) | | |
getSQLException | public static JdbcSQLException getSQLException(int sqlState, String p1)(Code) | | Gets the SQL Exception object for a specific SQLState. Supported
SQL states are:
Parameters: sqlState - the SQL state Parameters: p1 - the first parameter of the message the SQLException object |
getSQLException | public static JdbcSQLException getSQLException(int sqlstate)(Code) | | Gets the SQL Exception object for a specific SQLState.
Parameters: sqlstate - -the SQL State the SQLException object |
|
|