package com.psg.dlsysinfo.dl_sysinfo_server.error;

public class ApiError extends Throwable {
    private String message;
    private Throwable cause; // Optional

    // Existing constructor
    public ApiError(String message) {
        this.message = message;
    }

    // New constructor
    public ApiError(String message, Throwable cause) {
        this.message = message;
        this.cause = cause;
    }

    // Getters and setters...
}
