Class ExceptionDetails

java.lang.Object
io.webfolder.cdp.type.runtime.ExceptionDetails

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

    • ExceptionDetails

      public ExceptionDetails()
  • Method Details

    • getExceptionId

      public Integer getExceptionId()
      Exception id.
    • setExceptionId

      public void setExceptionId(Integer exceptionId)
      Exception id.
    • getText

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

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

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

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

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

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

      public String getScriptId()
      Script ID of the exception location.
    • setScriptId

      public void setScriptId(String scriptId)
      Script ID of the exception location.
    • getUrl

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

      public void setUrl(String url)
      URL of the exception location, to be used when the script was not reported.
    • getStackTrace

      public StackTrace getStackTrace()
      JavaScript stack trace if available.
    • setStackTrace

      public void setStackTrace(StackTrace stackTrace)
      JavaScript stack trace if available.
    • getException

      public RemoteObject getException()
      Exception object if available.
    • setException

      public void setException(RemoteObject exception)
      Exception object if available.
    • getExecutionContextId

      public Integer getExecutionContextId()
      Identifier of the context where exception happened.
    • setExecutionContextId

      public void setExecutionContextId(Integer executionContextId)
      Identifier of the context where exception happened.
    • getExceptionMetaData

      public Object getExceptionMetaData()
      Dictionary with entries of meta data that the client associated with this exception, such as information about associated network requests, etc.
    • setExceptionMetaData

      public void setExceptionMetaData(Object exceptionMetaData)
      Dictionary with entries of meta data that the client associated with this exception, such as information about associated network requests, etc.
    • toString

      public String toString()
      Overrides:
      toString in class Object