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