Open Kilda Java Documentation
InvalidResponseException.java
Go to the documentation of this file.
1 package org.openkilda.integration.exception;
2 
3 public class InvalidResponseException extends RuntimeException {
4 
5  private static final long serialVersionUID = 6981852888050194806L;
6 
7  private int code;
8  private String response;
9 
11  super();
12  }
13 
14  public InvalidResponseException(final int code, final String response) {
15  super();
16  this.code = code;
17  this.response = response;
18  }
19 
20  public InvalidResponseException(final int code, final String response, final String errorMessage) {
21  super(errorMessage);
22  this.code = code;
23  this.response = response;
24  }
25 
26  public InvalidResponseException(final int code, final String response, final String errorMessage,
27  final Throwable e) {
28  super(errorMessage, e);
29  this.code = code;
30  this.response = response;
31  }
32 
33  public int getCode() {
34  return code;
35  }
36 
37  public String getResponse() {
38  return response;
39  }
40 }
InvalidResponseException(final int code, final String response, final String errorMessage)
InvalidResponseException(final int code, final String response, final String errorMessage, final Throwable e)