All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openrewrite.jgit.errors.UnsupportedCredentialItem Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2010, Christian Halstrick ,
 * Copyright (C) 2010, Stefan Lay  and others
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Distribution License v. 1.0 which is available at
 * https://www.eclipse.org/org/documents/edl-v10.php.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */
package org.openrewrite.jgit.errors;

import org.openrewrite.jgit.transport.URIish;

/**
 * An exception thrown when a {@link org.openrewrite.jgit.transport.CredentialItem}
 * is requested from a {@link org.openrewrite.jgit.transport.CredentialsProvider}
 * which is not supported by this provider.
 */
public class UnsupportedCredentialItem extends RuntimeException {
	private static final long serialVersionUID = 1L;

	/**
	 * Constructs an UnsupportedCredentialItem with the specified detail message
	 * prefixed with provided URI.
	 *
	 * @param uri
	 *            URI used for transport
	 * @param s
	 *            message
	 */
	public UnsupportedCredentialItem(URIish uri, String s) {
		super(uri.setPass(null) + ": " + s); //$NON-NLS-1$
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy