#1891 - Adding cause and message to AskTimeoutException
This commit is contained in:
parent
10bb7f678a
commit
e88fc3d660
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue