/* * This is part of Geomajas, a GIS framework, http://www.geomajas.org/. * * Copyright 2008-2015 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.editing.jsapi.client.service; import org.geomajas.annotation.Api; import org.geomajas.plugin.editing.client.operation.GeometryOperationFailedException; import org.timepedia.exporter.client.Export; import org.timepedia.exporter.client.ExportConstructor; import org.timepedia.exporter.client.ExportOverlay; import org.timepedia.exporter.client.ExportPackage; /** * Exception throws during operations on geometries. * * @author Pieter De Graef * @since 1.0.0 */ @Export("GeometryOperationFailedException") @ExportPackage("org.geomajas.plugin.editing.service") @Api(allMethods = true) public class JsGeometryOperationFailedException implements ExportOverlay<GeometryOperationFailedException> { /** * Create a new exception with the given message. * * @param message * The exception message. * @return The exception. */ @ExportConstructor public static GeometryOperationFailedException create(String message) { return new GeometryOperationFailedException(message); } /** * Return the exception message. * * @return The exception message. */ public String getMessage() { return ""; } }