cslant/telegram-git-notifier

View on GitHub
src/Exceptions/CallbackException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace CSlant\TelegramGitNotifier\Exceptions;

use Exception;

final class CallbackException extends TelegramGitNotifierException
{
    public static function answer(Exception $exception): self
    {
        return new self('Error answering callback query: ' . $exception->getMessage());
    }
}