Package net.thucydides.core.model
Class ErrorMessageFormatter
java.lang.Object
net.thucydides.core.model.ErrorMessageFormatter
public class ErrorMessageFormatter
extends java.lang.Object
Converts a full WebDriver message into a shorter, more web-friendly format.
-
Constructor Summary
Constructors Constructor Description ErrorMessageFormatter(java.lang.String originalMessage)
-
Method Summary
Modifier and Type Method Description java.lang.String
getShortErrorMessage()
Returns the first line only of the error message.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ErrorMessageFormatter
public ErrorMessageFormatter(java.lang.String originalMessage)
-
-
Method Details
-
getShortErrorMessage
public java.lang.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.
-