cslant/telegram-git-notifier

View on GitHub
src/Exceptions/EntryNotFoundException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace CSlant\TelegramGitNotifier\Exceptions;

final class EntryNotFoundException extends TelegramGitNotifierException
{
    public static function fileNotFound(): self
    {
        return new self('File not found');
    }

    public static function configNotFound(string $config): self
    {
        return new self("Config {$config} not found");
    }

    public static function viewNotFound(string $view): self
    {
        return new self("View {$view} not found");
    }
}