Class ScriptFailedToParse


  • public class ScriptFailedToParse
    extends java.lang.Object
    Fired when virtual machine fails to parse the script.
    • Constructor Summary

      Constructors 
      Constructor Description
      ScriptFailedToParse​(ScriptId scriptId, java.lang.String url, java.lang.Integer startLine, java.lang.Integer startColumn, java.lang.Integer endLine, java.lang.Integer endColumn, ExecutionContextId executionContextId, java.lang.String hash, java.util.Map<java.lang.String,​java.lang.Object> executionContextAuxData, java.lang.String sourceMapURL, java.lang.Boolean hasSourceURL, java.lang.Boolean isModule, java.lang.Integer length, StackTrace stackTrace)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer getEndColumn()
      Length of the last line of the script.
      java.lang.Integer getEndLine()
      Last line of the script.
      java.util.Map<java.lang.String,​java.lang.Object> getExecutionContextAuxData()
      Embedder-specific auxiliary data.
      ExecutionContextId getExecutionContextId()
      Specifies script creation context.
      java.lang.String getHash()
      Content hash of the script.
      java.lang.Boolean getHasSourceURL()
      True, if this script has sourceURL.
      java.lang.Boolean getIsModule()
      True, if this script is ES6 module.
      java.lang.Integer getLength()
      This script length.
      ScriptId getScriptId()
      Identifier of the script parsed.
      java.lang.String getSourceMapURL()
      URL of source map associated with script (if any).
      StackTrace getStackTrace()
      JavaScript top stack frame of where the script parsed event was triggered if available.
      java.lang.Integer getStartColumn()
      Column offset of the script within the resource with given URL.
      java.lang.Integer getStartLine()
      Line offset of the script within the resource with given URL (for script tags).
      java.lang.String getUrl()
      URL or name of the script parsed (if any).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScriptFailedToParse

        public ScriptFailedToParse​(ScriptId scriptId,
                                   java.lang.String url,
                                   java.lang.Integer startLine,
                                   java.lang.Integer startColumn,
                                   java.lang.Integer endLine,
                                   java.lang.Integer endColumn,
                                   ExecutionContextId executionContextId,
                                   java.lang.String hash,
                                   java.util.Map<java.lang.String,​java.lang.Object> executionContextAuxData,
                                   java.lang.String sourceMapURL,
                                   java.lang.Boolean hasSourceURL,
                                   java.lang.Boolean isModule,
                                   java.lang.Integer length,
                                   StackTrace stackTrace)
    • Method Detail

      • getScriptId

        public ScriptId getScriptId()
        Identifier of the script parsed.
      • getUrl

        public java.lang.String getUrl()
        URL or name of the script parsed (if any).
      • getStartLine

        public java.lang.Integer getStartLine()
        Line offset of the script within the resource with given URL (for script tags).
      • getStartColumn

        public java.lang.Integer getStartColumn()
        Column offset of the script within the resource with given URL.
      • getEndLine

        public java.lang.Integer getEndLine()
        Last line of the script.
      • getEndColumn

        public java.lang.Integer getEndColumn()
        Length of the last line of the script.
      • getExecutionContextId

        public ExecutionContextId getExecutionContextId()
        Specifies script creation context.
      • getHash

        public java.lang.String getHash()
        Content hash of the script.
      • getExecutionContextAuxData

        public java.util.Map<java.lang.String,​java.lang.Object> getExecutionContextAuxData()
        Embedder-specific auxiliary data.
      • getSourceMapURL

        public java.lang.String getSourceMapURL()
        URL of source map associated with script (if any).
      • getHasSourceURL

        public java.lang.Boolean getHasSourceURL()
        True, if this script has sourceURL.
      • getIsModule

        public java.lang.Boolean getIsModule()
        True, if this script is ES6 module.
      • getLength

        public java.lang.Integer getLength()
        This script length.
      • getStackTrace

        @Beta
        public StackTrace getStackTrace()
        JavaScript top stack frame of where the script parsed event was triggered if available.