/**
 * GitHub Repository Name Taken Error
 *
 * Thrown by the git remote service when `gh repo create` reports that the
 * requested repository name already exists on the target owner. The UI
 * surfaces this inline so the user can pick a different name.
 */
export class GitHubRepoNameTakenError extends Error {
    ownerLogin;
    repoName;
    code = 'GH_REPO_NAME_TAKEN';
    constructor(ownerLogin, repoName) {
        super(`Repository "${repoName}" already exists on ${ownerLogin}.`);
        this.ownerLogin = ownerLogin;
        this.repoName = repoName;
        this.name = 'GitHubRepoNameTakenError';
        Object.setPrototypeOf(this, new.target.prototype);
    }
}
