@propensive - in your Scala code, if a Java method's signature includes a checked exception, will you *always* assume you need to handle it?
-
-
Replying to @propensive
@Gentmen ...normally I just know (from expectation or bad experience) what exceptions need to be handled. But maybe I should check docs...1 reply 0 retweets 0 likes -
Replying to @propensive
@propensive if an API 'throws IOException," I'm not sure if it's OK to look at the source and say, "oh, but my call to it won't throw."1 reply 0 retweets 0 likes -
Replying to @propensive
@Gentmen In the case of IOException, what operations are there that claim might throw it, but you can be certain won't get thrown?1 reply 0 retweets 0 likes -
Replying to @propensive
@propensive SnappyCodec#readHeader will read an InputStream's first 16 bytes. EOFException if <= 16. I only called it if `is.length > 16`.2 replies 0 retweets 0 likes
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.