Class MatchError

All Implemented Interfaces:
Serializable

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

    • getObject

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