EventHandler class: raised exception types changed.

Changed the exceptions raised in EventHandler#initialize method.
Updated the related spec file accordingly.