KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > nutch > protocol > RetryLater


1 /* Copyright (c) 2004 The Nutch Organization. All rights reserved. */
2 /* Use subject to the conditions in http://www.nutch.org/LICENSE.txt. */
3
4 package net.nutch.protocol;
5
6 import java.io.IOException JavaDoc;
7 import java.net.URL JavaDoc;
8
9 /** Thrown by {@link Protocol#getContent(String)} when a {@link URL} should be
10  * retried later.*/

11 public class RetryLater extends ProtocolException {
12   private URL JavaDoc url;
13
14   public RetryLater(URL JavaDoc url, String JavaDoc message) {
15     super(message);
16     this.url = url;
17   }
18
19   public URL JavaDoc getUrl() { return url; }
20 }
21
Popular Tags