Skip to content

Instantly share code, notes, and snippets.

@bwmcadams
Created March 3, 2015 18:19
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 bwmcadams/47698f20868b891e43fc to your computer and use it in GitHub Desktop.
Save bwmcadams/47698f20868b891e43fc to your computer and use it in GitHub Desktop.
insert.transact(xa).attemptSomeSqlState {
case INTEGRITY_CONSTRAINT_VIOLATION =>
ERR_PartnerEntryExists
}.run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment