Class ErrorMessageFormatter

java.lang.Object
net.thucydides.core.model.ErrorMessageFormatter

public class ErrorMessageFormatter extends Object
Converts a full WebDriver message into a shorter, more web-friendly format.
  • Constructor Details

    • ErrorMessageFormatter

      public ErrorMessageFormatter(String originalMessage)
  • Method Details

    • getShortErrorMessage

      public String getShortErrorMessage()
      Returns the first line only of the error message. This avoids polluting the UI with unnecessary details such as browser versions and so forth.