001/* 002 * (C) Copyright 2014 Nuxeo SA (http://nuxeo.com/) and contributors. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl-2.1.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 * vpasquier <vpasquier@nuxeo.com> 016 */ 017package org.nuxeo.box.api.marshalling.exceptions; 018 019import com.fasterxml.jackson.annotation.JsonProperty; 020 021/** 022 * Nuxeo Box Exception 023 * 024 * @since 5.9.3 025 */ 026public class NXBoxJsonException { 027 028 protected String type = "error"; 029 030 protected String code; 031 032 protected int status; 033 034 protected String helpUrl = null; 035 036 protected String message; 037 038 protected String request_id = null; 039 040 @JsonProperty("type") 041 public String getType() { 042 return this.type; 043 } 044 045 @JsonProperty("type") 046 public void setType(String type) { 047 this.type = type; 048 } 049 050 @JsonProperty("code") 051 public String getCode() { 052 return code; 053 } 054 055 @JsonProperty("code") 056 public void setCode(String code) { 057 this.code = code; 058 } 059 060 @JsonProperty("status") 061 public int getStatus() { 062 return status; 063 } 064 065 @JsonProperty("status") 066 public void setStatus(int status) { 067 this.status = status; 068 } 069 070 @JsonProperty("help_url") 071 public String getHelpUrl() { 072 return helpUrl; 073 } 074 075 @JsonProperty("help_url") 076 public void setHelpUrl(String helpUrl) { 077 this.helpUrl = helpUrl; 078 } 079 080 @JsonProperty("message") 081 public String getMessage() { 082 return message; 083 } 084 085 @JsonProperty("message") 086 public void setMessage(String message) { 087 this.message = message; 088 } 089 090 @JsonProperty("request_id") 091 public String getRequest_id() { 092 return request_id; 093 } 094 095 @JsonProperty("request_id") 096 public void setRequest_id(String request_id) { 097 this.request_id = request_id; 098 } 099}