Created
April 29, 2016 02:15
-
-
Save luksrn/4146af12c0a29cea066a9c871dc1ca51 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package demo | |
class DemoController { | |
def someAction() { | |
// do some work | |
} | |
def handleSQLException(SQLException e) { | |
render 'A SQLException Was Handled' | |
} | |
def handleBatchUpdateException(BatchUpdateException e) { | |
redirect controller: 'logging', action: 'batchProblem' | |
} | |
def handleNumberFormatException(NumberFormatException nfe) { | |
[problemDescription: 'A Number Was Invalid'] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment