Added new error types, and a couple tests to ensure the inheritance is up to scratch.