Added a few custom exceptions. Unfinished.