Remove redundant declaration of exception.
Initial implementation of #27.