public class InvalidRepositoryException extends Exception
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
Repository |
getRepository()
Gets the repository that causes this error (if any).
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidRepositoryException(String message, Repository repository, Throwable cause)
message
- The detail message, may be null
.repository
- The repository that caused the error, may be null
.cause
- The cause, may be null
.public InvalidRepositoryException(String message, Repository repository)
message
- The detail message, may be null
.repository
- The repository that caused the error, may be null
.public Repository getRepository()
null
if not known.Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.