Top Description Fields Constructors Methods
io.vavr

public Class MatchError

extends NoSuchElementException
Class Inheritance
Imports
java.util.NoSuchElementException

A API.Match throws a MatchError if no case matches the applied object.
Author
Daniel Dietrich

Field Summary

Modifier and TypeField and Description
private final Object
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
MatchError(Object
The object which could not be matched.
obj
)

Internally called by API.Match.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

An Object.
getObject
()

Returns the object which could not be matched.

Field Detail

objback to summary
private final Object obj
Annotations
@SuppressWarnings:serial
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.NoSuchElementException.serialVersionUID.

Constructor Detail

MatchErrorback to summary
pack-priv MatchError(Object obj)

Internally called by API.Match.

Parameters
obj:Object

The object which could not be matched.

Method Detail

getObjectback to summary
public Object getObject()

Returns the object which could not be matched.

Returns:Object

An Object.