Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
16 lines
358 B
PHP
16 lines
358 B
PHP
<?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})");
|
|
}
|
|
}
|