org.eclipse.ocl
Class AmbiguousLookupException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.ocl.ParserException
org.eclipse.ocl.SemanticException
org.eclipse.ocl.LookupException
org.eclipse.ocl.AmbiguousLookupException
- All Implemented Interfaces:
- Serializable
public class AmbiguousLookupException
- extends LookupException
A specialized LookupException
denoting specifically that the
problem is multiple ambiguous results.
- Since:
- 1.2
- See Also:
LookupException.getAmbiguousMatches()
,
Serialized Form
Constructor Summary |
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. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
AmbiguousLookupException
public AmbiguousLookupException(String msg,
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(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.
- 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