Click or drag to resize
Akka.NETEventFilterFactoryException Method (Type, String, String, String, String, Boolean)
Create a filter for Error events.

message takes priority over start. If message!=null the event must match it to be filtered. If start!=null and message has not been specified, the event must start with the given string to be filtered.

Examples
Exception(typeof(MyException)) // filter only on exception type Exception(typeof(MyException), "message") // filter on exactly matching message Exception(typeof(MyException), source: obj) // filter on event source Exception(typeof(MyException), start: "Expected") // filter on start of message
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,
	string message = null,
	string start = null,
	string contains = null,
	string source = null,
	bool checkInnerExceptions = false
)

Parameters

exceptionType
Type: SystemType
The type of the exception. It must be a Exception.
message (Optional)
Type: SystemString
Optional. If specified the event must match it exactly to be filtered.
start (Optional)
Type: SystemString
>Optional. If specified (and message is not specified, the event must start with the string to be filtered.
contains (Optional)
Type: SystemString
Optional. If specified (and neither message nor start are specified), the event must contain the string 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