All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.javaclub.sword.web.ExceptionResponse Maven / Gradle / Ivy

The newest version!
package com.github.javaclub.sword.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ExceptionResponse {

	private Throwable throwable;
	
	private HttpServletRequest req;
	
	private HttpServletResponse resp;
	
	private Object obj;
	
	private Long code;
	
	private String errorMsg;
	
	public ExceptionResponse() {}

	public ExceptionResponse(Throwable throwable, 
			HttpServletRequest req, HttpServletResponse resp, 
			Long code, Object obj, String errorMsg) {
		this.throwable = throwable;
		this.req = req;
		this.resp = resp;
		this.code = code;
		this.errorMsg = errorMsg;
		this.obj = obj;
	}

	public Throwable getThrowable() {
		return throwable;
	}

	public void setThrowable(Throwable throwable) {
		this.throwable = throwable;
	}

	public HttpServletRequest getReq() {
		return req;
	}

	public void setReq(HttpServletRequest req) {
		this.req = req;
	}

	public HttpServletResponse getResp() {
		return resp;
	}

	public void setResp(HttpServletResponse resp) {
		this.resp = resp;
	}

	public Long getCode() {
		return code;
	}

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

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy