From 05ae4f166d8348e7d24fe458b5ad5a968140d6ef Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 16 Jul 2024 16:42:06 +0300 Subject: [PATCH] implement protocol exception --- src/Model/Connection.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Model/Connection.php b/src/Model/Connection.php index 912773f0..d3da525a 100644 --- a/src/Model/Connection.php +++ b/src/Model/Connection.php @@ -92,9 +92,17 @@ class Connection extends \Yggverse\Yoda\Abstract\Model\Connection default: - throw new \Exception( + $this->setTitle( + _('Oops!') + ); + + $this->setData( _('Protocol not supported') ); + + $this->setCompleted( + true + ); } } } \ No newline at end of file