Skip to content

Instantly share code, notes, and snippets.

@luksrn
Created April 29, 2016 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luksrn/da4de7e07e090a92f3e9f017bd1fe140 to your computer and use it in GitHub Desktop.
Save luksrn/da4de7e07e090a92f3e9f017bd1fe140 to your computer and use it in GitHub Desktop.
package com.demo
trait DatabaseExceptionHandler {
def handleSQLException(SQLException e) {
// manipular SQLException
}
def handleBatchUpdateException(BatchUpdateException e) {
// manipular BatchUpdateException
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment