Stop installing librairies during tests
[parser.git] / verigraph / src / main / java / it / polito / escape / verify / model / ErrorMessage.java
1 /*******************************************************************************
2  * Copyright (c) 2017 Politecnico di Torino and others.
3  *
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Apache License, Version 2.0
6  * which accompanies this distribution, and is available at
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *******************************************************************************/
9
10 package it.polito.escape.verify.model;
11
12 import javax.xml.bind.annotation.XmlRootElement;
13
14 import io.swagger.annotations.ApiModel;
15 import io.swagger.annotations.ApiModelProperty;
16
17 @ApiModel(value = "Error")
18 @XmlRootElement
19 public class ErrorMessage {
20
21         @ApiModelProperty(example = "Error message")
22         private String  errorMessage;
23         @ApiModelProperty(allowableValues = "400,403,404,500", value = "HTTP error code", example = "[400,403,404,500]")
24         private int             errorCode;
25         @ApiModelProperty(example = "http://localhost:8080/verify/api-docs/")
26         private String  documentation;
27
28         public ErrorMessage() {
29
30         }
31
32         public ErrorMessage(String errorMessage, int errorCode, String documentation) {
33                 this.errorMessage = errorMessage;
34                 this.errorCode = errorCode;
35                 this.documentation = documentation;
36         }
37
38         public String getErrorMessage() {
39                 return errorMessage;
40         }
41
42         public void setErrorMessage(String errorMessage) {
43                 this.errorMessage = errorMessage;
44         }
45
46         public int getErrorCode() {
47                 return errorCode;
48         }
49
50         public void setErrorCode(int errorCode) {
51                 this.errorCode = errorCode;
52         }
53
54         public String getDocumentation() {
55                 return documentation;
56         }
57
58         public void setDocumentation(String documentation) {
59                 this.documentation = documentation;
60         }
61
62 }