Class InvalidRepositoryException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.maven.model.resolution.InvalidRepositoryException
-
- All Implemented Interfaces:
java.io.Serializable
public class InvalidRepositoryException extends java.lang.Exception
Signals an error when adding a repository to the model resolver.- Author:
- Benjamin Bentmann
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidRepositoryException(java.lang.String message, org.apache.maven.model.Repository repository)
Creates a new exception with specified detail message for the given repository.InvalidRepositoryException(java.lang.String message, org.apache.maven.model.Repository repository, java.lang.Throwable cause)
Creates a new exception with specified detail message and cause for the given repository.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.maven.model.Repository
getRepository()
Gets the repository that causes this error (if any).
-
-
-
Constructor Detail
-
InvalidRepositoryException
public InvalidRepositoryException(java.lang.String message, org.apache.maven.model.Repository repository, java.lang.Throwable cause)
Creates a new exception with specified detail message and cause for the given repository.- Parameters:
message
- The detail message, may benull
.repository
- The repository that caused the error, may benull
.cause
- The cause, may benull
.
-
InvalidRepositoryException
public InvalidRepositoryException(java.lang.String message, org.apache.maven.model.Repository repository)
Creates a new exception with specified detail message for the given repository.- Parameters:
message
- The detail message, may benull
.repository
- The repository that caused the error, may benull
.
-
-