Click or drag to resize
Akka.NETEventFilterFactoryError Method (String, String, String, String)
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. If contains!=null and both message and start have not been specified, the event must contain the given string to be filtered.

Examples
Error() // filter all Error events Error("message") // filter on exactly matching message Error(source: obj) // filter on event source Error(start: "Expected") // filter on start of message Error(contains: "Expected") // filter on part 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.129 (1.2.3.129)
Syntax
public IEventFilterApplier Error(
	string message = null,
	string start = null,
	string contains = null,
	string source = null
)

Parameters

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.

Return Value

Type: IEventFilterApplier
The new filter
See Also