Added new dispatcher exception.
This ecception is meant for custom error handling in the dispatcher method.
Also added a test for the new exception.