12345678910111213141516171819202122232425262728293031323334 |
- package com.limao.im.base.net;
- public class ResponeThrowable extends Exception {
- private int status;
- private String msg;
- public ResponeThrowable(Throwable throwable, int code) {
- super(throwable);
- this.status = code;
- }
- public int getCode() {
- return status;
- }
- @Override
- public String getMessage() {
- return msg;
- }
- public void setMessage(String message) {
- this.msg = message;
- }
- @Override
- public String toString() {
- return "ResponeThrowable{" +
- "code=" + status +
- ", message='" + msg + '\'' +
- '}';
- }
- }
|