Exception handling

Exception handling works. However, between the last assignment and this
one some of the pages are broken, mostly the result pages, which is also
how I found out the exceptions work. I never touched them, between those
points in time, but I'm going to look into it and figure out what's
wrong. Hopefully fixing one should fix the rest too.