Refactored Dispatcher,Added one Custom Exception