Extractor enabling patterns that match MatchResult having matches property value of true,
extracting the contained negated failure message.
Extractor enabling patterns that match MatchResult having matches property value of true,
extracting the contained negated failure message.
For example, you can use this extractor to get the negated failure message of a MatchResult like this:
matchResult match {
case MatchSucceeded(negatedFailureMessage) => // do something with negatedFailureMessage
case _ => // when matchResult.matches equal to false
}
the MatchResult to extract the negated failure message from.
a Some wrapping the contained negated failure message if matchResult.matches is equal to true, else None.
Singleton object that provides
unapplymethod to extract negated failure message fromMatchResulthavingmatchesproperty value oftrue.