Class InvalidRepositoryException

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

@Deprecated(since="4.0.0") public class InvalidRepositoryException extends Exception
Deprecated.
use ModelBuilder instead
Signals an error when adding a repository to the model resolver.
See Also:
  • Constructor Details

    • InvalidRepositoryException

      public InvalidRepositoryException(String message, Repository repository, Throwable cause)
      Deprecated.
      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)
      Deprecated.
      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 Details

    • getRepository

      public Repository getRepository()
      Deprecated.
      Gets the repository that causes this error (if any).
      Returns:
      The repository that causes this error or null if not known.