<?php

namespace Classes\Core\Exception;

/**
 * Custom exception for SyncByRule validation errors
 */
class SyncByRuleValidationException extends Exception {
    private string $errorType;

    public function __construct(string $message, string $errorType, int $code = 0, ?\Throwable $previous = null) {
        parent::__construct($message, $code, $previous);
        $this->errorType = $errorType;
    }

    public function getErrorType(): string {
        return $this->errorType;
    }
}
