org.apache.maven.model.resolution
Class InvalidRepositoryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.maven.model.resolution.InvalidRepositoryException
All Implemented Interfaces:
Serializable

public class InvalidRepositoryException
extends Exception

Signals an error when adding a repository to the model resolver.

Author:
Benjamin Bentmann
See Also:
Serialized Form

Constructor Summary
InvalidRepositoryException(String message, Repository repository)
          Creates a new exception with specified detail message for the given repository.
InvalidRepositoryException(String message, Repository repository, Throwable cause)
          Creates a new exception with specified detail message and cause for the given repository.
 
Method Summary
 Repository getRepository()
          Gets the repository that causes this error (if any).
 
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

InvalidRepositoryException

public InvalidRepositoryException(String message,
                                  Repository repository,
                                  Throwable cause)
Creates a new exception with specified detail message and cause for the given repository.

Parameters:
message - The detail message, may be null.
repository - The repository that caused the error, may be null.
cause - The cause, may be null.

InvalidRepositoryException

public InvalidRepositoryException(String message,
                                  Repository repository)
Creates a new exception with specified detail message for the given repository.

Parameters:
message - The detail message, may be null.
repository - The repository that caused the error, may be null.
Method Detail

getRepository

public Repository getRepository()
Gets the repository that causes this error (if any).

Returns:
The repository that causes this error or null if not known.


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.