public class AmbiguousLookupException extends LookupException
LookupException
denoting specifically that the
problem is multiple ambiguous results.LookupException.getAmbiguousMatches()
,
Serialized FormConstructor and Description |
---|
AmbiguousLookupException(java.lang.String msg,
java.util.List<?> matches)
Initializes me with a user-friendly message describing the nature of
the lookup that resulted in multiple ambiguous matches.
|
AmbiguousLookupException(java.lang.String msg,
java.lang.Object firstMatch,
java.lang.Object secondMatch,
java.lang.Object... otherMatches)
Initializes me with a user-friendly message describing the nature of
the lookup failure and at least two objects that were ambiguous matches.
|
getAmbiguousMatches, getMatches
getDiagnostic
public AmbiguousLookupException(java.lang.String msg, java.util.List<?> matches)
msg
- the exception messagematches
- the objects found by the lookuppublic AmbiguousLookupException(java.lang.String msg, java.lang.Object firstMatch, java.lang.Object secondMatch, java.lang.Object... otherMatches)
msg
- the exception messagefirstMatch
- the first object found by the look-upsecondMatch
- the second object found by the look-upotherMatches
- any further objects found by the look-up