Class ExceptionDetails

java.lang.Object
org.openqa.selenium.devtools.v85.runtime.model.ExceptionDetails

public class ExceptionDetails extends Object
Detailed information about exception (or error) that was thrown during script compilation or execution.
  • Constructor Details

  • Method Details

    • getExceptionId

      public Integer getExceptionId()
      Exception id.
    • getText

      public String getText()
      Exception text, which should be used together with exception object when available.
    • getLineNumber

      public Integer getLineNumber()
      Line number of the exception location (0-based).
    • getColumnNumber

      public Integer getColumnNumber()
      Column number of the exception location (0-based).
    • getScriptId

      public Optional<ScriptId> getScriptId()
      Script ID of the exception location.
    • getUrl

      public Optional<String> getUrl()
      URL of the exception location, to be used when the script was not reported.
    • getStackTrace

      public Optional<StackTrace> getStackTrace()
      JavaScript stack trace if available.
    • getException

      public Optional<RemoteObject> getException()
      Exception object if available.
    • getExecutionContextId

      public Optional<ExecutionContextId> getExecutionContextId()
      Identifier of the context where exception happened.