package com.lc.wechat.crm.exception;

public class RestException extends Exception {
	private static final long serialVersionUID = 2079144167612964345L;

	private int code;
	private String message;

	public RestException() {

	}

	public RestException(String message) {
		super(message);
		this.message = message;
	}

	public RestException(Throwable cause) {
		super(cause);
	}

	public RestException(int code, String message) {
		super(message);
		this.code = code;
		this.message = message;
	}

	public RestException(String message, Throwable cause) {
		super(message, cause);
	}

	public int getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}

}