Unsuccessful

com.phasmidsoftware.matchers.Matchers.Unsuccessful
See theUnsuccessful companion class
object Unsuccessful

Extractor object for matching unsuccessful MatchResult values.

The Unsuccessful object serves as a pattern to extract information from instances of MatchResult that represent an unsuccessful match. It matches error cases and provides access to the underlying details (either an exception or a message) wrapped in a Left or Right.

Attributes

Companion
class
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Matchers.this.Matchers.this.Unsuccessful.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def unapply(x: Matchers.this.MatchResult[_]): Option[Either[Throwable, String]]