Click or drag to resize
Akka.NETEventFilterFactoryException Method
Overload List
  NameDescription
Public methodCode exampleExceptionTException(Regex, String)
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).
Public methodCode exampleExceptionTException(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).
Public methodCode exampleException(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).
Public methodCode exampleException(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).
Top
See Also