<?php

namespace App\Exceptions\Accounting;

use Exception;

class UnbalancedJournalException extends Exception
{
    public static function forAmounts(string $totalDebits, string $totalCredits): self
    {
        return new self(
            "Journal entry is not balanced. Debits: {$totalDebits}, Credits: {$totalCredits}."
        );
    }
}
