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.NoSuchElementExceptionAAPI.Matchthrows a MatchError if no case matches the applied object.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Objectobjprivate static longserialVersionUID
-
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.ObjectgetObject()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.
-
-