case class UncaughtExceptionCause(x: Throwable) extends PermanentRollbackCause with Product with Serializable
The RollbackCause
for an atomic block that should not be restarted
because it threw an exception. The exception might have been thrown from
the body of the atomic block or from a handler invoked before the commit
decision. Exceptions used for control flow are not included (see
TxnExecutor.isControlFlow
).
Scala's STM discards Ref
writes performed by atomic blocks that throw
an exception. This is referred to as "failure atomicity". In a system
that uses exceptions for error cleanup this design tends to preserve the
invariants of shared data structures, which is a good thing. If a system
uses exceptions for control flow, however, this design may lead to
unexpected behavior. The TxnExecutor
object's isControlFlow
method
is used to distinguish exceptions representing control flow transfers
from those used to represent error conditions. See
TxnExecutor.transformDefault
to change the default rules.
- Alphabetic
- By Inheritance
- UncaughtExceptionCause
- Serializable
- Serializable
- Product
- Equals
- PermanentRollbackCause
- RollbackCause
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val x: Throwable