Changed exception types & fixed docblock formatting.