essential-slick icon indicating copy to clipboard operation
essential-slick copied to clipboard

Describe error handling

Open d6y opened this issue 10 years ago • 3 comments

(Well, investigate first)

From nafg on gitterr:

DBIO has combinators for error handling, like toTry that turns a DBIO[A] into a DBIO[Try[A]] surfacing the error state

Or is it better to look at error handing in the Future[A] result?

What do I even mean by "error"?

d6y avatar Jul 22 '15 10:07 d6y

Is this linked to #44?

jonoabroad avatar Oct 14 '15 07:10 jonoabroad

Could be. I don't really know what I mean by error handling. I might be talking application errors, SQL errors, connection failure. It's not thought out. But it seems like it should be a topic. (NB: this is filed in "icebox" for some unspecified future date).

d6y avatar Oct 14 '15 07:10 d6y

Related: named as a way to track down problems (we list named in a table in chapter 4)

You name an action by calling named on it. E.g., someAction.named(“get all the things”) Then in logback.xml turn up the debugging on slick. <logger name="slick.backend.DatabaseComponent.action" level="DEBUG”/> When the query runs the log should show something like:

DEBUG DatabaseComponent.action - #1: named get all the things

DEBUG DatabaseComponent.action - #2: StreamingInvokerAction$HeadAction [THE SQL THAT CAUSE THE PROBLEM HERE]

https://gitter.im/underscoreio/scala?at=570ca9fd8b17927458e39076

d6y avatar Apr 12 '16 08:04 d6y