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