public final class FailLoadingEvent extends LoadEvent
Constructor and Description |
---|
FailLoadingEvent(Browser browser, long frameId, boolean mainFrame, java.lang.String validatedURL, NetError errorCode, java.lang.String errorDescription)
Constructs a new
FailLoadingEvent instance.
|
Modifier and Type | Method and Description |
---|---|
NetError |
getErrorCode()
Returns Network error code which is one from the
返回网络错误代码,该代码是NetError列表中的一个。 NetError list.
|
java.lang.String |
getErrorDescription()
Returns the description of the error code.
返回错误代码的描述。 |
long |
getFrameId()
Returns identifier of a frame which is failed to load.
返回加载失败的帧的标识符。 |
java.lang.String |
getValidatedURL()
Returns a string that represents address of a frame which is failed to load.
返回一个字符串,该字符串表示无法加载的帧的地址。 |
boolean |
isMainFrame()
Indicates whether the failed frame is a main frame or not.
指示故障帧是否为主机。 |
java.lang.String |
toString() |
getBrowser
public FailLoadingEvent(Browser browser, long frameId, boolean mainFrame, java.lang.String validatedURL, NetError errorCode, java.lang.String errorDescription)
FailLoadingEvent
instance.
browser
- the browser instance on which the event is initially occurred.
-最初发生事件的浏览器实例。
frameId
- identifier of a frame that is failed to download.
-下载失败的框架的标识符。
mainFrame
- indicates whether the
frameId
is a main frame.
-指示是否为主机。
validatedURL
- address of a frame which is failed to download.
-下载失败的框架地址。
errorCode
- describes the reason of failure. Use
NetError
to compare.
-描述失败的原因。用于比较。
errorDescription
- description of the reason of failure.
-故障原因的描述。
public long getFrameId()
public boolean isMainFrame()
true
when the frame is a main frame.
当框架是主框架时。
public java.lang.String getValidatedURL()
public NetError getErrorCode()
NetError
list.
NetError
public java.lang.String getErrorDescription()
public java.lang.String toString()
toString
in class
java.lang.Object