scala · scala/MatchError
MatchError
MatchError
Thrown when a match expression is evaluated against a value not covered by any of its cases. Indicates a non-exhaustive pattern match; use a wildcard case or a sealed class hierarchy to prevent this at runtime.