Added useful exceptions.