Enterprise Information Portal APIs

com.ibm.gcs.crawler
Class URLCrawlException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.ibm.gcs.crawler.URLCrawlException
All Implemented Interfaces:
java.io.Serializable

public class URLCrawlException
extends java.lang.Exception

Signals to the crawler that an exception has occurred while attempting to crawl a specific URL, so no content will be returned.

This exception may be thrown, for example, by a URLContainer when an I/O error occurs while attempting to connect to and/or read the content at the URL (e.g., socket time-out, bad server response, etc.) or when no content was found at the URL.

Note: The reason that this exception is not an NLSException is that it is used to wrap already localized messages.

See Also:
Serialized Form

Constructor Summary
URLCrawlException(java.lang.String urlString, java.lang.String message)
          (constructor) builds URLCrawlException with localized version of exception message.
 
Method Summary
 java.lang.String getURLString()
          Return the URL of the object that was crawled.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URLCrawlException

public URLCrawlException(java.lang.String urlString,
                         java.lang.String message)
(constructor) builds URLCrawlException with localized version of exception message.
Parameters:
urlString - The url for which the crawl failed.
message - Localized<\i> version of exception message.
Method Detail

getURLString

public java.lang.String getURLString()
Return the URL of the object that was crawled.
Returns:
String The urlstring of the object that was crawled.

EIP Web Crawler APIs

(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.