Introduced uniquely identifiable, loggable base exception: AkkaException and made use of it throught the project

This commit is contained in:
Jonas Bonér 2010-08-19 07:01:09 +02:00
parent 04af409889
commit 51b22b22e7
22 changed files with 106 additions and 91 deletions

View file

@ -4,18 +4,15 @@
package se.scalablesolutions.akka.stm
import se.scalablesolutions.akka.AkkaException
import org.multiverse.api.{StmUtils => MultiverseStmUtils}
import org.multiverse.api.ThreadLocalTransaction._
import org.multiverse.api.{Transaction => MultiverseTransaction}
import org.multiverse.commitbarriers.CountDownCommitBarrier
import org.multiverse.templates.OrElseTemplate
class TransactionSetAbortedException(msg: String) extends RuntimeException(msg)
// TODO Should we remove TransactionAwareWrapperException? Not used anywhere yet.
class TransactionAwareWrapperException(val cause: Throwable, val tx: Option[Transaction]) extends RuntimeException(cause) {
override def toString = "TransactionAwareWrapperException[" + cause + ", " + tx + "]"
}
class TransactionSetAbortedException(msg: String) extends AkkaException(msg)
/**
* Internal helper methods and properties for transaction management.