Initial commit: CloudOps infrastructure platform
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Mautic\SmsBundle\Exception;
|
||||
|
||||
class CallbackHandlerNotFound extends \Exception
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Mautic\SmsBundle\Exception;
|
||||
|
||||
class NumberNotFoundException extends \Exception
|
||||
{
|
||||
/**
|
||||
* @param string $number
|
||||
* @param string $message
|
||||
* @param int $code
|
||||
*/
|
||||
public function __construct(
|
||||
private $number,
|
||||
$message = '',
|
||||
$code = 0,
|
||||
?\Throwable $previous = null,
|
||||
) {
|
||||
if (!$message) {
|
||||
$message = "Phone number '{$number}' not found";
|
||||
}
|
||||
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getNumber()
|
||||
{
|
||||
return $this->number;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Mautic\SmsBundle\Exception;
|
||||
|
||||
class PrimaryTransportNotEnabledException extends \Exception
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user