net.thucydides.core.model
Class ErrorMessageFormatter

Package class diagram package ErrorMessageFormatter
java.lang.Object
  extended by net.thucydides.core.model.ErrorMessageFormatter

public class ErrorMessageFormatter
extends Object

Converts a full WebDriver message into a shorter, more web-friendly format.


Constructor Summary
ErrorMessageFormatter(String originalMessage)
           
 
Method Summary
 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 Detail

ErrorMessageFormatter

public ErrorMessageFormatter(String originalMessage)
Method Detail

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.

Returns:


Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.