org.openrewrite.jgit.errors.UnsupportedCredentialItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jgit Show documentation
Show all versions of jgit Show documentation
Fork of jgit to maintain Java 8 compatibility
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$
}
}