/**
 * 
 */
package it.mice.voila.runtime.web.restws;

import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;


/**
 *
 */
@JsonIgnoreProperties({ "cause", "throwables", "exception" })
@JsonAutoDetect(fieldVisibility=Visibility.ANY)
public class JsonCallError {
	private Integer errorCode;
	private String errorKey;
	private String errorMessage;
	private String exceptionClass;
	
	/**
	 * Costruttore di classe.
	 * @param errorCode the errorCode.
	 * @param errorKey the errorKey.
	 * @param message the message.
	 */
	public JsonCallError(Integer errorCode, String errorKey, String message) {
		super();
		this.errorCode = errorCode;
		this.errorKey = errorKey;
		this.errorMessage = message;
	}
	
	/**
	 * Costruttore di classe.
	 * @param errorCode the errorCode.
	 * @param errorKey the errorKey.
	 * @param message the message.
	 * @param exceptionClass the exceptionClass.
	 */
	public JsonCallError(Integer errorCode, String errorKey, String message, String exceptionClass) {
		super();
		this.errorCode = errorCode;
		this.errorKey = errorKey;
		this.errorMessage = message;
		this.exceptionClass = exceptionClass;
	}
}
