public class ExceptionListener extends Object
Constructor and Description |
---|
ExceptionListener(MuleContext muleContext)
Constructor for creating a listener for any exception thrown within a flow or message source.
|
Modifier and Type | Method and Description |
---|---|
ExceptionListener |
assertExpectedException(Class<? extends Throwable> expectedExceptionType) |
ExceptionListener |
assertExpectedExceptionCausedBy(Class<? extends Throwable> expectedExceptionCauseType)
Asserts that there is at least one exception with the given cause
|
ExceptionListener |
setNumberOfExecutionsRequired(int numberOfExecutionsRequired) |
ExceptionListener |
setTimeoutInMillis(int timeout) |
ExceptionListener |
waitUntilAllNotificationsAreReceived() |
public ExceptionListener(MuleContext muleContext)
public ExceptionListener waitUntilAllNotificationsAreReceived()
public ExceptionListener assertExpectedException(Class<? extends Throwable> expectedExceptionType)
public ExceptionListener assertExpectedExceptionCausedBy(Class<? extends Throwable> expectedExceptionCauseType)
expectedExceptionCauseType
- the excepted cause of a thrown exceptionpublic ExceptionListener setNumberOfExecutionsRequired(int numberOfExecutionsRequired)
numberOfExecutionsRequired
- number of times that the listener must be notified before releasing the latch.public ExceptionListener setTimeoutInMillis(int timeout)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.