package com.example.demo.model;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 异常日志实体。
 */
@Schema(description = "异常日志实体")
public class ExceptionLog {

    @Schema(description = "日志ID")
    private Long id;

    @Schema(description = "异常时间")
    private String exceptionTime;

    @Schema(description = "异常类型")
    private String exceptionType;

    @Schema(description = "异常信息")
    private String exceptionMessage;

    @Schema(description = "堆栈信息")
    private String stackTrace;

    @Schema(description = "请求URL")
    private String requestUrl;

    @Schema(description = "请求参数")
    private String requestParams;

    public ExceptionLog() {
    }

    public ExceptionLog(Long id, String exceptionTime, String exceptionType,
                        String exceptionMessage, String stackTrace, String requestUrl, String requestParams) {
        this.id = id;
        this.exceptionTime = exceptionTime;
        this.exceptionType = exceptionType;
        this.exceptionMessage = exceptionMessage;
        this.stackTrace = stackTrace;
        this.requestUrl = requestUrl;
        this.requestParams = requestParams;
    }

    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    public String getExceptionTime() { return exceptionTime; }
    public void setExceptionTime(String exceptionTime) { this.exceptionTime = exceptionTime; }
    public String getExceptionType() { return exceptionType; }
    public void setExceptionType(String exceptionType) { this.exceptionType = exceptionType; }
    public String getExceptionMessage() { return exceptionMessage; }
    public void setExceptionMessage(String exceptionMessage) { this.exceptionMessage = exceptionMessage; }
    public String getStackTrace() { return stackTrace; }
    public void setStackTrace(String stackTrace) { this.stackTrace = stackTrace; }
    public String getRequestUrl() { return requestUrl; }
    public void setRequestUrl(String requestUrl) { this.requestUrl = requestUrl; }
    public String getRequestParams() { return requestParams; }
    public void setRequestParams(String requestParams) { this.requestParams = requestParams; }
}
