public class AmbiguousLookupException extends LookupException
LookupException
denoting specifically that the
problem is multiple ambiguous results.LookupException.getAmbiguousMatches()
,
Serialized FormConstructor and Description |
---|
AmbiguousLookupException(String msg,
List<?> matches)
Initializes me with a user-friendly message describing the nature of
the lookup that resulted in multiple ambiguous matches.
|
AmbiguousLookupException(String msg,
Object firstMatch,
Object secondMatch,
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
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AmbiguousLookupException(String msg, List<?> matches)
msg
- the exception messagematches
- the objects found by the lookuppublic AmbiguousLookupException(String msg, Object firstMatch, Object secondMatch, 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-upCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.