#1891 - Adding cause and message to AskTimeoutException

This commit is contained in:
Viktor Klang 2012-03-06 14:56:34 +01:00
parent 10bb7f678a
commit e88fc3d660

View file

@ -15,8 +15,9 @@ import akka.util.Timeout
* This is what is used to complete a Future that is returned from an ask/? call,
* when it times out.
*/
class AskTimeoutException(message: String, cause: Throwable) extends TimeoutException {
class AskTimeoutException(message: String, cause: Throwable) extends TimeoutException(message) {
def this(message: String) = this(message, null: Throwable)
override def getCause(): Throwable = cause
}
/**