Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- preparedStatementIme.executeUpdate();
- preparedStatementTezina.executeUpdate();
- } catch (SQLException exception) {
- connection.rollback();
- if (exception.getMessage().indexOf("checktezina") != -1) {
- throw new SQLException("Težina mora biti veća od nule.",
- exception.getSQLState(), -746);
- } else {
- throw exception;
- }
- }
- connection.commit();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement