New to slick, so sorry if I didn't find this, but when looking at the doc it doesn't really cover how to handle errors. Lets say that a foreignKey check failed, I will get back a SQLException with string codes. Does slick provide any abstraction over codes that I can use?
I am currently doing the following in the above example:
if (e.getSQLState != null && e.getSQLState.startsWith("23")) {
// return a validation issue to the user
}
I can look up all the codes myself and figure out how best to handle the different types of exceptions, but it would be nicer if there was something in slick that I could reuse.