<?php

namespace App\Exceptions;

use RuntimeException;

final class DuplicateCcliSongException extends RuntimeException
{
    public function __construct(
        public readonly int $existingSongId,
        string $message = '',
    ) {
        parent::__construct($message ?: "Song mit dieser CCLI-Nummer existiert bereits (#{$existingSongId})");
    }
}
