Changed exceptions.

To more specific error messages.