Creating MSMQ Exception

In testing you might want to throw a manual MessageQueueingException to test the functionality of your exception handling. As it’s not possible to create an exception object the following can be used to throw an exception: ReceiveById(”this is a made up id to force an exception”) As long as no message exists that matches this you will [...]

SHARE:

Add comment

Loading