2 * © 2013 xplosion interactive
5 package net.pterodactylus.sone.web.ajax;
7 import com.fasterxml.jackson.annotation.JsonProperty;
8 import com.google.common.annotations.VisibleForTesting;
11 * {@link JsonReturnObject} that signals an error has occured.
13 * @author <a href="mailto:d.roden@xplosion.de">David Roden</a>
15 public class JsonErrorReturnObject extends JsonReturnObject {
17 /** The error that has occured. */
19 private final String error;
22 * Creates a new error JSON return object.
25 * The error that occured
27 public JsonErrorReturnObject(String error) {
37 * Returns the error that occured.
39 * @return The error that occured
42 public String getError() {