Package org.codelibs.fess.exception
Class DataStoreCrawlingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.codelibs.fess.crawler.exception.CrawlerSystemException
org.codelibs.fess.crawler.exception.CrawlingAccessException
org.codelibs.fess.exception.DataStoreCrawlingException
- All Implemented Interfaces:
Serializable
public class DataStoreCrawlingException
extends org.codelibs.fess.crawler.exception.CrawlingAccessException
Exception thrown when an error occurs during data store crawling operations.
This exception provides information about the URL where the error occurred
and whether the crawling process should be aborted.
- See Also:
-
Field Summary
Fields inherited from class org.codelibs.fess.crawler.exception.CrawlingAccessException
DEBUG, ERROR, INFO, WARN -
Constructor Summary
ConstructorsConstructorDescriptionDataStoreCrawlingException(String url, String message, Throwable cause) Creates a new DataStoreCrawlingException with the specified URL, message, and cause.DataStoreCrawlingException(String url, String message, Throwable cause, boolean abort) Creates a new DataStoreCrawlingException with the specified URL, message, cause, and abort flag. -
Method Summary
Methods inherited from class org.codelibs.fess.crawler.exception.CrawlingAccessException
isDebugEnabled, isErrorEnabled, isInfoEnabled, isWarnEnabled, setLogLevelMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DataStoreCrawlingException
Creates a new DataStoreCrawlingException with the specified URL, message, and cause. The abort flag is set to false by default.- Parameters:
url- the URL where the crawling error occurredmessage- the error messagecause- the underlying exception that caused this error
-
DataStoreCrawlingException
Creates a new DataStoreCrawlingException with the specified URL, message, cause, and abort flag.- Parameters:
url- the URL where the crawling error occurredmessage- the error messagecause- the underlying exception that caused this errorabort- whether the crawling process should be aborted due to this error
-
-
Method Details
-
getUrl
Gets the URL where the crawling error occurred.- Returns:
- the URL associated with this exception
-
aborted
public boolean aborted()Checks whether the crawling process should be aborted due to this exception.- Returns:
- true if the crawling should be aborted, false otherwise
-