package ru.nbch.credit_tracker.exceptions;

import lombok.Getter;
import ru.nbch.credit_tracker.enums.EnumKeyMessage;
import ru.nbch.credit_tracker.enums.XmlErrorFormat;

@Getter
public class SignalException extends RuntimeException {
    private final EnumKeyMessage errorMessage;
    private final XmlErrorFormat errorFormat;

    public SignalException(EnumKeyMessage errorMessage,
                                 XmlErrorFormat errorFormat) {
        this.errorMessage = errorMessage;
        this.errorFormat = errorFormat;
    }
}
