|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.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(java.lang.String msg)
Initializes me with a user-friendly message describing the nature of the lookup failure. |
|
LookupException(java.lang.String msg,
java.util.List<?> matches)
Initializes me with a user-friendly message describing the nature of the lookup that resulted in these zero or more matches. |
|
LookupException(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. |
Method Summary | |
---|---|
java.util.List<?> |
getAmbiguousMatches()
Obtains the list of ambiguous matches, if the problem was one of ambiguity, in the order in which they were found. |
java.util.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(java.lang.String msg)
msg
- the exception messagepublic LookupException(java.lang.String msg, java.util.List<?> matches)
msg
- the exception messagematches
- the objects found by the lookuppublic LookupException(java.lang.String msg, java.lang.Object firstMatch, java.lang.Object secondMatch, java.lang.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 java.util.List<?> getMatches()
getAmbiguousMatches()
,
InvalidLookupException.getInvalidMatch()
public java.util.List<?> getAmbiguousMatches()
InvalidLookupException.getInvalidMatch()
,
getMatches()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |