throw exception if can't resolve handler