package br.com.mirabilis.util.request;

import java.io.Serializable;

/**
 * Objeto de resposta genrico para AsyncTask e subtipos.
 * @author Rodrigo, Anderson
 *
 * @param <T>
 */
public class ResponseData<T> implements Serializable {

	private T data;
	private String message;
	private boolean successfully;
	
	/**
	 * Serializao
	 */
	private static final long serialVersionUID = -1396907768012910102L;
	
	public ResponseData(boolean successfully, String message, T data) {
		this.successfully = successfully;
		this.message = message;
		this.data = data;
	}
	
	public boolean isSuccessfully() {
		return successfully;
	}
	
	public String getMessage() {
		return message;
	}
	
	public T getData() {
		return data;
	}
}

@@ -303,16 +303,46 @@
 sfully;%0A
+%09private Exception exception;%0A
 %09%0A%09/**%0A%09
@@ -583,24 +583,168 @@
  data;%0A%09%7D%0A%09%0A
+%09public void setException(Exception exception) %7B%0A%09%09this.exception = exception;%0A%09%7D%0A%09%0A%09public Exception getException() %7B%0A%09%09return exception;%0A%09%7D%0A%09%0A
 %09public bool

Insert object Expection in ResponseData