WrongMsg.java 928 Bytes
package com.gimi.common.cinema.model;

import com.google.gson.annotations.Expose;

public class WrongMsg extends Throwable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7457964260418110305L;
	// "msg":"uri_not_found",
	// "code":1001,
	// "request":"GET \/v2\/photo\/132"
	@Expose
	private String msg;// wrong msg describe
	@Expose
	private String request;// request url and method
	@Expose
	private int code;// wrong code

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getRequest() {
		return request;
	}

	public void setRequest(String request) {
		this.request = request;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	@Override
	public String toString() {
		return "WrongMsg{" +
				"msg='" + msg + '\'' +
				", request='" + request + '\'' +
				", code=" + code +
				'}';
	}
}