You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TranslationBundleLoadingException.java 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright (C) 2010, Sasa Zivkov <sasa.zivkov@sap.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.errors;
  11. import java.util.Locale;
  12. /**
  13. * This exception will be thrown when a translation bundle loading
  14. * fails.
  15. */
  16. public class TranslationBundleLoadingException extends TranslationBundleException {
  17. private static final long serialVersionUID = 1L;
  18. /**
  19. * Construct a
  20. * {@link org.eclipse.jgit.errors.TranslationBundleLoadingException} for the
  21. * specified bundle class and locale.
  22. *
  23. * @param bundleClass
  24. * the bundle class for which the loading failed
  25. * @param locale
  26. * the locale for which the loading failed
  27. * @param cause
  28. * the original exception thrown from the
  29. * {@link java.util.ResourceBundle#getBundle(String, Locale)}
  30. * method.
  31. */
  32. public TranslationBundleLoadingException(Class bundleClass, Locale locale, Exception cause) {
  33. super("Loading of translation bundle failed for [" //$NON-NLS-1$
  34. + bundleClass.getName() + ", " + locale.toString() + "]", //$NON-NLS-1$ //$NON-NLS-2$
  35. bundleClass, locale, cause);
  36. }
  37. }