LfsRepositoryReadOnly.java

  1. /*
  2.  * Copyright (C) 2016, David Pursehouse <david.pursehouse@gmail.com> and others
  3.  *
  4.  * This program and the accompanying materials are made available under the
  5.  * terms of the Eclipse Distribution License v. 1.0 which is available at
  6.  * https://www.eclipse.org/org/documents/edl-v10.php.
  7.  *
  8.  * SPDX-License-Identifier: BSD-3-Clause
  9.  */

  10. package org.eclipse.jgit.lfs.errors;

  11. import java.text.MessageFormat;

  12. import org.eclipse.jgit.lfs.internal.LfsText;

  13. /**
  14.  * Thrown when the user has read, but not write access. Only applicable when the
  15.  * operation in the request is "upload".
  16.  *
  17.  * @since 4.5
  18.  */
  19. public class LfsRepositoryReadOnly extends LfsException {
  20.     private static final long serialVersionUID = 1L;

  21.     /**
  22.      * <p>Constructor for LfsRepositoryReadOnly.</p>
  23.      *
  24.      * @param name
  25.      *            the repository name.
  26.      */
  27.     public LfsRepositoryReadOnly(String name) {
  28.         super(MessageFormat.format(LfsText.get().repositoryReadOnly, name));
  29.     }
  30. }