public class InvalidLookupException extends LookupException
LookupException
denoting specifically that the
problem is a single result that is invalid or otherwise unexpected.getInvalidMatch()
,
Serialized FormConstructor and Description |
---|
InvalidLookupException(String msg,
Object match)
Initializes me with a user-friendly message describing the nature of
the lookup that resulted in an unexpected match.
|
Modifier and Type | Method and Description |
---|---|
Object |
getInvalidMatch()
Obtains the invalid result of the look-up, or
null if the
look-up found no matches or multiple ambiguous matches. |
getAmbiguousMatches, getMatches
getDiagnostic
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public Object getInvalidMatch()
null
if the
look-up found no matches or multiple ambiguous matches.null
if the look-up
problem was not a matter of finding an invalid resultLookupException.getAmbiguousMatches()
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.