13 lines
294 B
PHP
13 lines
294 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Exceptions;
|
|
|
|
class CrmServiceException extends \RuntimeException
|
|
{
|
|
public static function of(?string $message = null, ?\Throwable $cause = null): self
|
|
{
|
|
return new self($message ?? 'CrmServiceException', previous: $cause);
|
|
}
|
|
}
|