Class ExceptionDetails


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

      Constructors 
      Constructor Description
      ExceptionDetails​(java.lang.Integer exceptionId, java.lang.String text, java.lang.Integer lineNumber, java.lang.Integer columnNumber, java.util.Optional<ScriptId> scriptId, java.util.Optional<java.lang.String> url, java.util.Optional<StackTrace> stackTrace, java.util.Optional<RemoteObject> exception, java.util.Optional<ExecutionContextId> executionContextId, java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>> exceptionMetaData)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer getColumnNumber()
      Column number of the exception location (0-based).
      java.util.Optional<RemoteObject> getException()
      Exception object if available.
      java.lang.Integer getExceptionId()
      Exception id.
      java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>> getExceptionMetaData()
      Dictionary with entries of meta data that the client associated with this exception, such as information about associated network requests, etc.
      java.util.Optional<ExecutionContextId> getExecutionContextId()
      Identifier of the context where exception happened.
      java.lang.Integer getLineNumber()
      Line number of the exception location (0-based).
      java.util.Optional<ScriptId> getScriptId()
      Script ID of the exception location.
      java.util.Optional<StackTrace> getStackTrace()
      JavaScript stack trace if available.
      java.lang.String getText()
      Exception text, which should be used together with exception object when available.
      java.util.Optional<java.lang.String> getUrl()
      URL of the exception location, to be used when the script was not reported.
      • Methods inherited from class java.lang.Object

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

      • ExceptionDetails

        public ExceptionDetails​(java.lang.Integer exceptionId,
                                java.lang.String text,
                                java.lang.Integer lineNumber,
                                java.lang.Integer columnNumber,
                                java.util.Optional<ScriptId> scriptId,
                                java.util.Optional<java.lang.String> url,
                                java.util.Optional<StackTrace> stackTrace,
                                java.util.Optional<RemoteObject> exception,
                                java.util.Optional<ExecutionContextId> executionContextId,
                                java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>> exceptionMetaData)
    • 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 java.util.Optional<ScriptId> getScriptId()
        Script ID of the exception location.
      • getUrl

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

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

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

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

        @Beta
        public java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>> getExceptionMetaData()
        Dictionary with entries of meta data that the client associated with this exception, such as information about associated network requests, etc.