Click or drag to resize
Akka.NETEventFilterFactoryException Method (Type, Regex, String, Boolean)
Create a filter for Error events. Events must match the specified pattern to be filtered.
Examples
Exception<MyException>(pattern: new Regex("weird.*message"), source: obj) // filter on pattern and source
Remarks
Please note that filtering on the source being null does NOT work (passing null disables the source filter).

Namespace:  Akka.TestKit
Assembly:  Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public IEventFilterApplier Exception(
	Type exceptionType,
	Regex pattern,
	string source = null,
	bool checkInnerExceptions = false
)

Parameters

exceptionType
Type: SystemType
The type of the exception. It must be a Exception.
pattern
Type: System.Text.RegularExpressionsRegex
The event must match the pattern to be filtered.
source (Optional)
Type: SystemString
>Optional. The event source.
checkInnerExceptions (Optional)
Type: SystemBoolean
Optional. When set to true not only the top level exception is matched, but inner exceptions are also checked until one matches. Default: false

Return Value

Type: IEventFilterApplier
The new filter
See Also