/** * Creates a new exception with the specified metadata and repository. * * @param metadata The missing metadata, may be {@code null}. * @param repository The involved remote repository, may be {@code null}. */ public MetadataNotFoundException( Metadata metadata, RemoteRepository repository ) { super( metadata, repository, "Could not find metadata " + metadata + getString( " in ", repository ) ); }
/** * Creates a new exception with the specified metadata and local repository. * * @param metadata The missing metadata, may be {@code null}. * @param repository The involved local repository, may be {@code null}. */ public MetadataNotFoundException( Metadata metadata, LocalRepository repository ) { super( metadata, null, "Could not find metadata " + metadata + getString( " in ", repository ) ); }
/** * Creates a new exception with the specified metadata and local repository. * * @param metadata The missing metadata, may be {@code null}. * @param repository The involved local repository, may be {@code null}. */ public MetadataNotFoundException( Metadata metadata, LocalRepository repository ) { super( metadata, null, "Could not find metadata " + metadata + getString( " in ", repository ) ); }
/** * Creates a new exception with the specified metadata and repository. * * @param metadata The missing metadata, may be {@code null}. * @param repository The involved remote repository, may be {@code null}. */ public MetadataNotFoundException( Metadata metadata, RemoteRepository repository ) { super( metadata, repository, "Could not find metadata " + metadata + getString( " in ", repository ) ); }