org.eclipse.ocl.examples.pivot
Class AmbiguousLookupException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.ocl.examples.pivot.ParserException
org.eclipse.ocl.examples.pivot.SemanticException
org.eclipse.ocl.examples.pivot.LookupException
org.eclipse.ocl.examples.pivot.AmbiguousLookupException
- All Implemented Interfaces:
- java.io.Serializable
public class AmbiguousLookupException
- extends LookupException
A specialized LookupException
denoting specifically that the
problem is multiple ambiguous results.
- Author:
- Christian W. Damus (cdamus)
- See Also:
LookupException.getAmbiguousMatches()
,
Serialized Form
Constructor Summary |
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. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AmbiguousLookupException
public 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.
- Parameters:
msg
- the exception messagematches
- the objects found by the lookup
AmbiguousLookupException
public 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.
- Parameters:
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