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