Bug 30057: Move virtualshelf-related exceptions to a separate library