Class WebDriverException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String BASE_SUPPORT_URL  
      static java.lang.String DRIVER_INFO  
      static java.lang.String SESSION_ID  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addInfo​(java.lang.String key, java.lang.String value)  
      java.lang.String getAdditionalInformation()  
      BuildInfo getBuildInformation()  
      static java.lang.String getDriverName​(java.lang.StackTraceElement[] stackTraceElements)  
      java.lang.String getMessage()
      Returns the detail message string of this exception that includes not only the original message passed to the exception constructor but also driver information, system information and extra information added by addInfo(String, String) method.
      java.lang.String getRawMessage()
      Returns the simple message string of this exception.
      java.lang.String getSupportUrl()  
      java.lang.String getSystemInformation()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

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

      • WebDriverException

        public WebDriverException()
      • WebDriverException

        public WebDriverException​(java.lang.String message)
      • WebDriverException

        public WebDriverException​(java.lang.Throwable cause)
      • WebDriverException

        public WebDriverException​(java.lang.String message,
                                  java.lang.Throwable cause)
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Returns the detail message string of this exception that includes not only the original message passed to the exception constructor but also driver information, system information and extra information added by addInfo(String, String) method. To get the original message use getRawMessage()
        Overrides:
        getMessage in class java.lang.Throwable
        Returns:
        the detail message string of this exception.
      • getRawMessage

        public java.lang.String getRawMessage()
        Returns the simple message string of this exception.
        Returns:
        the simple message string of this exception.
        See Also:
        getMessage()
      • getSystemInformation

        public java.lang.String getSystemInformation()
      • getSupportUrl

        public java.lang.String getSupportUrl()
      • getBuildInformation

        public BuildInfo getBuildInformation()
      • getDriverName

        public static java.lang.String getDriverName​(java.lang.StackTraceElement[] stackTraceElements)
      • addInfo

        public void addInfo​(java.lang.String key,
                            java.lang.String value)
      • getAdditionalInformation

        public java.lang.String getAdditionalInformation()