Packageorg.flexunit.reporting
Classpublic class FailureFormatter
InheritanceFailureFormatter Inheritance Object

The FailureFormatter is responsible for formatting potential failures.



Public Methods
 MethodDefined By
  
isError(error:Error):Boolean
[static] Returns a Boolean indicating whether the the provided error is an actual failure or if the error is an expected failure.
FailureFormatter
  
xmlEscapeMessage(message:String):String
[static] Filters XML characters out of a provided message.
FailureFormatter
Method Detail
isError()method
public static function isError(error:Error):Boolean

Returns a Boolean indicating whether the the provided error is an actual failure or if the error is an expected failure.

Parameters

error:Error — The Error to check and determine if it is an actual or expected Error.

Returns
Boolean — A Boolean value indicating whehter error was an actual or expected Error.
xmlEscapeMessage()method 
public static function xmlEscapeMessage(message:String):String

Filters XML characters out of a provided message.

Parameters

message:String — The String that will have XML characters filtered out of it.

Returns
String — the message without XML characters.