@propensive - in your Scala code, if a Java method's signature includes a checked exception, will you *always* assume you need to handle it?
-
-
@Gentmen In Scala, I think it's rare to distinguish between checked and runtime exceptions. They're all unchecked in Scala, and just as bad!Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@Gentmen In the case of IOException, what operations are there that claim might throw it, but you can be certain won't get thrown? -
@propensive SnappyCodec#readHeader will read an InputStream's first 16 bytes. EOFException if <= 16. I only called it if `is.length > 16`. - Show replies
New conversation -
-
-
.
@Gentmen Also, only bother distinguishing between different exception types if your end-user is going to see a difference.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.