Package io.vavr

Class MatchError

All Implemented Interfaces:
Serializable

public class MatchError extends NoSuchElementException
A API.Match throws a MatchError if no case matches the applied object.
See Also:
  • Field Details

  • Constructor Details

    • MatchError

      MatchError(Object obj)
      Internally called by API.Match.
      Parameters:
      obj - The object which could not be matched.
  • Method Details

    • getObject

      public Object getObject()
      Returns the object which could not be matched.
      Returns:
      An Object.