Class ExceptionDetails
- java.lang.Object
-
- org.openqa.selenium.devtools.runtime.model.ExceptionDetails
-
public class ExceptionDetails extends java.lang.Object
Detailed information about exception (or error) that was thrown during script compilation or execution.
-
-
Constructor Summary
Constructors Constructor Description ExceptionDetails(java.lang.Integer exceptionId, java.lang.String text, java.lang.Integer lineNumber, java.lang.Integer columnNumber, ScriptId scriptId, java.lang.String url, StackTrace stackTrace, RemoteObject exception, ExecutionContextId executionContextId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
getColumnNumber()
Column number of the exception location (0-based).RemoteObject
getException()
Exception object if available.java.lang.Integer
getExceptionId()
Exception id.ExecutionContextId
getExecutionContextId()
Identifier of the context where exception happened.java.lang.Integer
getLineNumber()
Line number of the exception location (0-based).ScriptId
getScriptId()
Script ID of the exception location.StackTrace
getStackTrace()
JavaScript stack trace if available.java.lang.String
getText()
Exception text, which should be used together with exception object when available.java.lang.String
getUrl()
URL of the exception location, to be used when the script was not reported.
-
-
-
Constructor Detail
-
ExceptionDetails
public ExceptionDetails(java.lang.Integer exceptionId, java.lang.String text, java.lang.Integer lineNumber, java.lang.Integer columnNumber, ScriptId scriptId, java.lang.String url, StackTrace stackTrace, RemoteObject exception, ExecutionContextId executionContextId)
-
-
Method Detail
-
getExceptionId
public java.lang.Integer getExceptionId()
Exception id.
-
getText
public java.lang.String getText()
Exception text, which should be used together with exception object when available.
-
getLineNumber
public java.lang.Integer getLineNumber()
Line number of the exception location (0-based).
-
getColumnNumber
public java.lang.Integer getColumnNumber()
Column number of the exception location (0-based).
-
getScriptId
public ScriptId getScriptId()
Script ID of the exception location.
-
getUrl
public java.lang.String getUrl()
URL of the exception location, to be used when the script was not reported.
-
getStackTrace
public StackTrace getStackTrace()
JavaScript stack trace if available.
-
getException
public RemoteObject getException()
Exception object if available.
-
getExecutionContextId
public ExecutionContextId getExecutionContextId()
Identifier of the context where exception happened.
-
-