| EventFilterFactoryExceptionTException 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.
Examples
Exception<MyException>() // filter only on exception type
Exception<MyException>("message") // filter on exactly matching message
Exception<MyException>(source: obj) // filter on event source
Exception<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.129 (1.2.3.129)
Syntax public IEventFilterApplier Exception<TException>(
string message = null,
string start = null,
string contains = null,
string source = null
)
where TException : Exception
member Exception :
?message : string *
?start : string *
?contains : string *
?source : string
(* Defaults:
let _message = defaultArg message null
let _start = defaultArg start null
let _contains = defaultArg contains null
let _source = defaultArg source null
*)
-> IEventFilterApplier when 'TException : Exception
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.
Type Parameters
- TException
- The type of the exception.
Return Value
Type:
IEventFilterApplierThe new filter
See Also