* @param errorMessage Error message to be passed.
* @return Formated SQLException with error code and message.
* @throws SQLException
*/
public static SQLException newSQLException(int errorCode, String errorMessage) throws SQLException {
SQLiteErrorCode code = SQLiteErrorCode.getErrorCode(errorCode);
SQLException e = new SQLException(String.format("%s (%s)", code, errorMessage), null, code.code);
return e;
}