package net.minecraft.gametest.framework;

import net.minecraft.network.chat.Component;

public class GameTestAssertException extends GameTestException {
    protected final Component message;
    protected final int tick;

    public GameTestAssertException(Component mesage, int tick) {
        super(mesage.getString());
        this.message = mesage;
        this.tick = tick;
    }

    @Override
    public Component getDescription() {
        return Component.translatable("test.error.tick", this.message, this.tick);
    }

    @Override
    public String getMessage() {
        return this.getDescription().getString();
    }
}
