Refactored UserModel, UrlModel and CommentModel to throw exceptions
rather than keep an error code.