scala-io icon indicating copy to clipboard operation
scala-io copied to clipboard

why exceptions extends scala.util.control.ControlThrowable?

Open comefortest opened this issue 11 years ago • 0 comments

The exceptions which extends scala.util.control.ControlThrowable, break out some scala control constructs, such as scalax.file.NotDirectoryException. When I use scala-io for something in a future, if a scalax.file.NotDirectoryException is thrown, then the "onComplete" of the generated future will not be triggered. scala.util.control.ControlThrowable, which is for BASIC control flows such as "IF-ELSE", "RETURN", "BREAK", "FUTRUEN", is not for scala-io.

comefortest avatar Nov 13 '13 04:11 comefortest