/*
 * This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
 *
 * Copyright 2008-2012 Geosparc nv, http://www.geosparc.com/, Belgium.
 *
 * The program is available in open source according to the GNU Affero
 * General Public License. All contributions in this program are covered
 * by the Geomajas Contributors License Agreement. For full licensing
 * details, see LICENSE.txt in the project root.
 */

package org.geomajas.plugin.reporting;

import org.geomajas.annotation.Api;
import org.geomajas.global.GeomajasException;

/**
 * Custom exception for reporting errors.
 *
 * @author Jan De Moerloose
 * @since 1.0.0
 */
@Api(allMethods = true)
public class ReportingException extends GeomajasException {

	/** Feature code is missing. */
	public static final int MISSING_FEATURE_CODE = 1;

	private static final String RESOURCE_BUNDLE_NAME = "org.geomajas.plugin.reporting.ReportingException";

	public ReportingException(int exceptionCode, Object... parameters) {
		super(exceptionCode, parameters);
	}

	public ReportingException(int exceptionCode) {
		super(exceptionCode);
	}

	public ReportingException(Throwable ex, int exceptionCode, Object... parameters) {
		super(ex, exceptionCode, parameters);
	}

	public ReportingException(Throwable ex, int exceptionCode) {
		super(ex, exceptionCode);
	}

	@Override
	public String getResourceBundleName() {
		return RESOURCE_BUNDLE_NAME;
	}

}

@@ -913,192 +913,555 @@
 ;%0A%0A%09
-public ReportingException(int exceptionCode, Object... parameters) %7B%0A%09%09super(exceptionCode, parameters);%0A%09%7D%0A%0A%09public ReportingException(int exceptionCode) %7B%0A%09%09super(exceptionCode);%0A%09%7D%0A
+/**%0A%09 * Construct reporting exception.%0A%09 *%0A%09 * @param exceptionCode exception code%0A%09 * @param parameters parameters%0A%09 */%0A%09public ReportingException(int exceptionCode, Object... parameters) %7B%0A%09%09super(exceptionCode, parameters);%0A%09%7D%0A%0A%09/**%0A%09 * Construct reporting exception.%0A%09 *%0A%09 * @param exceptionCode exception code%0A%09 */%0A%09public ReportingException(int exceptionCode) %7B%0A%09%09super(exceptionCode);%0A%09%7D%0A%0A%09/**%0A%09 * Construct reporting exception.%0A%09 *%0A%09 * @param ex cause exception%0A%09 * @param exceptionCode exception code%0A%09 * @param parameters parameters%0A%09 */
 %0A%09pu
@@ -1585,16 +1585,135 @@
 s);%0A%09%7D%0A%0A
+%09/**%0A%09 * Construct reporting exception.%0A%09 *%0A%09 * @param ex cause exception%0A%09 * @param exceptionCode exception code%0A%09 */%0A
 %09public 

add missing javadoc on api