|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.eclipse.ocl.ParserException org.eclipse.ocl.SemanticException org.eclipse.ocl.LookupException
public class LookupException
Exception indicating a semantic error in looking up a definition, typically resulting from an ambiguity.
Actual instances of this exception are usually more specific, being either
AmbiguousLookupException
s or InvalidLookupException
s.
AmbiguousLookupException
,
InvalidLookupException
,
Serialized FormConstructor Summary | |
---|---|
LookupException(String msg)
Initializes me with a user-friendly message describing the nature of the lookup failure. |
|
LookupException(String msg,
List<?> matches)
Initializes me with a user-friendly message describing the nature of the lookup that resulted in these zero or more matches. |
|
LookupException(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. |
Method Summary | |
---|---|
List<?> |
getAmbiguousMatches()
Obtains the list of ambiguous matches, if the problem was one of ambiguity, in the order in which they were found. |
List<?> |
getMatches()
Obtains all matches, in the order in which they were found. |
Methods inherited from class org.eclipse.ocl.ParserException |
---|
getDiagnostic |
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 |
Constructor Detail |
---|
public LookupException(String msg)
msg
- the exception messagepublic LookupException(String msg, List<?> matches)
msg
- the exception messagematches
- the objects found by the lookuppublic LookupException(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-upMethod Detail |
---|
public List<?> getMatches()
getAmbiguousMatches()
,
InvalidLookupException.getInvalidMatch()
public List<?> getAmbiguousMatches()
InvalidLookupException.getInvalidMatch()
,
getMatches()
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |