package de.avatic.lcc.model.db.error;

/**
 * Represents a trace item in system error stack trace.
 * Contains information about the location and context of an error occurrence.
 */
public class SysErrorTraceItem {

    /**
     * The unique identifier of the trace item.
     */
    private Integer id;

    /**
     * The identifier of the associated system error.
     */
    private Integer errorId;

    /**
     * The line number where the error occurred.
     */
    private Integer line;
    /**
     * The file name where the error occurred.
     */
    private String file;
    /**
     * The method name where the error occurred.
     */
    private String method;

    /**
     * The full path to the file where the error occurred.
     */
    private String fullPath;


    /**
     * Gets the unique identifier of the trace item.
     *
     * @return the trace item ID
     */
    public Integer getId() {
        return id;
    }

    /**
     * Sets the unique identifier of the trace item.
     *
     * @param id the trace item ID to set
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * Gets the identifier of the associated system error.
     *
     * @return the error ID
     */
    public Integer getErrorId() {
        return errorId;
    }

    /**
     * Sets the identifier of the associated system error.
     *
     * @param errorId the error ID to set
     */
    public void setErrorId(Integer errorId) {
        this.errorId = errorId;
    }

    /**
     * Gets the line number where the error occurred.
     *
     * @return the line number
     */
    public Integer getLine() {
        return line;
    }

    /**
     * Sets the line number where the error occurred.
     *
     * @param line the line number to set
     */
    public void setLine(Integer line) {
        this.line = line;
    }

    /**
     * Gets the file name where the error occurred.
     *
     * @return the file name
     */
    public String getFile() {
        return file;
    }

    /**
     * Sets the file name where the error occurred.
     *
     * @param file the file name to set
     */
    public void setFile(String file) {
        this.file = file;
    }

    /**
     * Gets the method name where the error occurred.
     *
     * @return the method name
     */
    public String getMethod() {
        return method;
    }

    /**
     * Sets the method name where the error occurred.
     *
     * @param method the method name to set
     */
    public void setMethod(String method) {
        this.method = method;
    }

    /**
     * Gets the full path to the file where the error occurred.
     *
     * @return the full path
     */
    public String getFullPath() {
        return fullPath;
    }

    /**
     * Sets the full path to the file where the error occurred.
     *
     * @param fullPath the full path to set
     */
    public void setFullPath(String fullPath) {
        this.fullPath = fullPath;
    }
}
