public class EventTimeoutException extends TimeoutException
This exception allows you to retrieve the partial result, that is the events that have been successfully received before the timeout occured.
Constructor and Description |
---|
EventTimeoutException(String message,
ResponseEvents partialResult)
Creates a new EventTimeoutException with the given message and partial
result.
|
Modifier and Type | Method and Description |
---|---|
ResponseEvents |
getPartialResult()
Returns the partial result that has been received before the timeout
occured.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public EventTimeoutException(String message, ResponseEvents partialResult)
message
- message with details about the timeout.partialResult
- the ResponseEvents object filled with the parts that
have been received before the timeout occured.public ResponseEvents getPartialResult()
Note: Using the partial result in your application should be avoided wherever possible. This is only a hack to handle those versions of Asterisk that don't follow the Manager API conventions, for example by not sending the correct ActionCompleteEvent.
null
when no response has been received.Copyright © 2004–2016. All rights reserved.