package thb.jeanluc.adventure.save;

/** Thrown when a save cannot be written/read; carries a player-facing message. */
public class SaveException extends RuntimeException {

    public SaveException(String message, Throwable cause) {
        super(message, cause);
    }

    public SaveException(String message) {
        super(message);
    }

    /** Player-facing message (the constructor message is already user-friendly). */
    public String getUserMessage() {
        return getMessage();
    }
}
