Exceptions written and implemented.