Package io.vavr
Class MatchError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.util.NoSuchElementException
-
- io.vavr.MatchError
-
- All Implemented Interfaces:
java.io.Serializable
public class MatchError extends java.util.NoSuchElementException
AAPI.Match
throws a MatchError if no case matches the applied object.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object
obj
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description MatchError(java.lang.Object obj)
Internally called byAPI.Match
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getObject()
Returns the object which could not be matched.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
obj
private final java.lang.Object obj
-
-
Constructor Detail
-
MatchError
MatchError(java.lang.Object obj)
Internally called byAPI.Match
.- Parameters:
obj
- The object which could not be matched.
-
-