Class Summary | |
class
|
Breaks
extends AnyRef
A class that can be instantiated for the break control abstraction.
Example usage:
val mybreaks = new Breaks import mybreaks.{break, breakable} breakable { for (...) { if (...) break } }Calls to break from one instantiation of Breaks will never target breakable objects of some other instantion. |
trait
|
ControlException
extends NoStackTrace
A marker trait indicating that the
Throwable it is mixed
into is intended for flow control. |
trait
|
NoStackTrace
extends java.lang.Throwable with AnyRef
A trait for exceptions which, for efficiency reasons, do not
fill in the stack trace.
|
abstract class
|
TailRec
[+A] extends AnyRef
|
Object Summary | |
object
|
Breaks
extends Breaks
An object that can be used for the break control abstraction.
Example usage:
import Breaks.{break, breakable} breakable { for (...) { if (...) break } } |
object
|
Exception
extends AnyRef
Classes representing the components of exception handling.
Each class is independently composable. Some common uses:
import scala.util.control.Exception._ import java.net._ val s = "http://www.scala-lang.org/" val x1 = catching(classOf[MalformedURLException]) opt new URL(s) val x2 = catching(classOf[MalformedURLException], classOf[NullPointerException]) either new URL(s) |
object
|
TailRec
extends AnyRef
|