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

com.ch.model.ExceptionInfo Maven / Gradle / Ivy

package com.ch.model;

import java.io.Serializable;
import com.ch.util.StackTraceUtil;

public class ExceptionInfo implements Serializable {

	private static final long serialVersionUID = 7173984378791450214L;
	private String stackTrace;
	private String exceptionMessage;
	private String exceptionSource;
	private String exceptionCategory;
	private String exceptionSubCategory;
	private String issueType;
	private String probableRootCause;

	public ExceptionInfo() {
	}

	public ExceptionInfo(Throwable t) {
		if (t != null && t instanceof Throwable) {
			stackTrace = StackTraceUtil.getStackTrace(t);
			exceptionMessage = t.getMessage();
		}
	}

	/**
	 * @return the stackTrace
	 */
	public String getStackTrace() {
		return stackTrace;
	}

	/**
	 * @param stackTrace the stackTrace to set
	 */
	public void setStackTrace(String stackTrace) {
		this.stackTrace = stackTrace;
	}

	/**
	 * @return the exceptionMessage
	 */
	public String getExceptionMessage() {
		return exceptionMessage;
	}

	/**
	 * @param exceptionMessage the exceptionMessage to set
	 */
	public void setExceptionMessage(String exceptionMessage) {
		this.exceptionMessage = exceptionMessage;
	}

	/**
	 * @return the exceptionSource
	 */
	public String getExceptionSource() {
		return exceptionSource;
	}

	/**
	 * @param exceptionSource the exceptionSource to set
	 */
	public void setExceptionSource(String exceptionSource) {
		this.exceptionSource = exceptionSource;
	}

	/**
	 * @return the exceptionCategory
	 */
	public String getExceptionCategory() {
		return exceptionCategory;
	}

	/**
	 * @param exceptionCategory the exceptionCategory to set
	 */
	public void setExceptionCategory(String exceptionCategory) {
		this.exceptionCategory = exceptionCategory;
	}

	/**
	 * @return the exceptionSubCategory
	 */
	public String getExceptionSubCategory() {
		return exceptionSubCategory;
	}

	/**
	 * @param exceptionSubCategory the exceptionSubCategory to set
	 */
	public void setExceptionSubCategory(String exceptionSubCategory) {
		this.exceptionSubCategory = exceptionSubCategory;
	}

	/**
	 * @return the issueType
	 */
	public String getIssueType() {
		return issueType;
	}

	/**
	 * @param issueType the issueType to set
	 */
	public void setIssueType(String issueType) {
		this.issueType = issueType;
	}

	/**
	 * @return the probableRootCause
	 */
	public String getProbableRootCause() {
		return probableRootCause;
	}

	/**
	 * @param probableRootCause the probableRootCause to set
	 */
	public void setProbableRootCause(String probableRootCause) {
		this.probableRootCause = probableRootCause;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy