org.apache.geronimo.kernel.repository
Class MultipleMatchesException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.geronimo.kernel.repository.MultipleMatchesException
All Implemented Interfaces:
Serializable

public class MultipleMatchesException
extends Exception

Indicates that you tried to resolve a partially-populated artifact to a real artifact expecting one match but you got multiple matches. Note there is a separate method to call if you expect multiple matches.

See Also:
Serialized Form

Constructor Summary
MultipleMatchesException(Artifact query)
           
MultipleMatchesException(Artifact query, String message)
           
 
Method Summary
 Artifact getArtifact()
          Gets the artifact used as a query argument that matched multiple real artifacts available in the server.
 
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

MultipleMatchesException

public MultipleMatchesException(Artifact query)

MultipleMatchesException

public MultipleMatchesException(Artifact query,
                                String message)
Method Detail

getArtifact

public Artifact getArtifact()
Gets the artifact used as a query argument that matched multiple real artifacts available in the server.



Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.