cslant/telegram-git-notifier

View on GitHub
src/Exceptions/SendNotificationException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace CSlant\TelegramGitNotifier\Exceptions;

final class SendNotificationException extends TelegramGitNotifierException
{
    public static function create(?string $exception = null): self
    {
        return new self('Can\'t send notification. ' . ($exception ?? ''));
    }
}