Class ExceptionDetails


  • public class ExceptionDetails
    extends java.lang.Object
    Detailed information about exception (or error) that was thrown during script compilation or execution.
    • 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.