All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
ai.platon.pulsar.skeleton.crawl.fetch.driver.Exceptions.kt Maven / Gradle / Ivy
package ai.platon.pulsar.skeleton.crawl.fetch.driver
import ai.platon.pulsar.common.browser.BrowserErrorCode
open class WebDriverException(
message: String? = null,
val driver: WebDriver? = null,
cause: Throwable? = null
): RuntimeException(message, cause) {
constructor(message: String?, cause: Throwable) : this(message, null, cause)
constructor(cause: Throwable?) : this(null, null, cause)
}
open class IllegalWebDriverStateException(
message: String? = null,
driver: WebDriver? = null,
cause: Throwable? = null
): WebDriverException(message, driver, cause) {
constructor(message: String?, cause: Throwable) : this(message, null, cause)
constructor(cause: Throwable?) : this(null, null, cause)
}
open class WebDriverCancellationException(
message: String? = null,
driver: WebDriver? = null,
cause: Throwable? = null
): IllegalWebDriverStateException(message, driver, cause) {
constructor(message: String?, cause: Throwable) : this(message, null, cause)
constructor(cause: Throwable?) : this(null, null, cause)
}
open class WebDriverUnavailableException(
message: String? = null,
cause: Throwable? = null
): IllegalWebDriverStateException(message, null, cause) {
constructor(cause: Throwable?) : this(null, cause)
}
open class BrowserErrorPageException(
errorCode: BrowserErrorCode,
message: String? = null,
pageContent: String? = null,
cause: Throwable? = null
): RuntimeException(message, cause)