java - Standard SQLStates in an enum -


i'd have enum containing standard sqlstates can:

  1. respond expected sql failures programmatically. example, want retry operations fail due race conditions. example, 1 thread removes row referenced thread, or 2 threads attempt insert same record thereby triggering unique constraint violation.
  2. look meaning of error quickly. there doesn't seem all-inclusive document on sqlstates, least of meaning.

it took me long time compile information. hope helps others. source code on bitbucket.org

contributions welcome!

(i couldn't post source-code on stackoverflow because bigger 30,000 characters)


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -