Break

scala.util.boundary.Break
See theBreak companion object
final class Break[T] extends RuntimeException

User code should call break.apply instead of throwing this exception directly.

Note that it is **capability unsafe** to access label from a Break. This field will be marked private in a future release.

Attributes

Companion
object
Source
boundary.scala
Graph
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def isSameLabelAs(other: Label[T]): Boolean

Compare the given Label to the one this Break was constructed with.

Compare the given Label to the one this Break was constructed with.

Attributes

Source
boundary.scala

Inherited methods

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable
final def getSuppressed(): Array[Throwable]

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable
def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Inherited from:
Throwable

Concrete fields

val label: Label[T]

Attributes

Source
boundary.scala
val value: T

Attributes

Source
boundary.scala