Class 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.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Repository repository
      The repository that raised this error, can be null.
    • Constructor Summary

      Constructors 
      Constructor Description
      InvalidRepositoryException​(java.lang.String message, Repository repository)
      Creates a new exception with specified detail message for the given repository.
      InvalidRepositoryException​(java.lang.String message, 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
      Repository getRepository()
      Gets the repository that causes this error (if any).
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • repository

        private Repository repository
        The repository that raised this error, can be null.
    • Constructor Detail

      • InvalidRepositoryException

        public InvalidRepositoryException​(java.lang.String message,
                                          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 be null.
        repository - The repository that caused the error, may be null.
        cause - The cause, may be null.
      • InvalidRepositoryException

        public InvalidRepositoryException​(java.lang.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.