Open Kilda Java Documentation
Error.java
Go to the documentation of this file.
1 package org.openkilda.model.response;
2 
6 public class Error {
7 
9  private int code;
10 
12  private String message;
13 
20  public Error(int code, String message) {
21  this.code = code;
22  this.message = message;
23  }
24 
30  public int getCode() {
31  return code;
32  }
33 
39  public String getMessage() {
40  return message;
41  }
42 
43  /*
44  * (non-Javadoc)
45  *
46  * @see java.lang.Object#toString()
47  */
48  public String toString() {
49  return "ExceptionResponse{" + "code=" + code + ", message='" + message + '\'' + '}';
50  }
51 }
Error(int code, String message)
Definition: Error.java:20