for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
* @package Quantum
* @author Arman Ag. <[email protected]>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 2.9.7
*/
namespace Quantum\Service\Exceptions;
use Quantum\Exceptions\BaseException;
* Class ServiceException
* @package Quantum\Service
class ServiceException extends BaseException
{
* @param string $name
* @return ServiceException
public static function serviceNotFound(string $name): ServiceException
return new static(t('service_not_found', $name), E_ERROR);
}
* @param array $names
public static function notServiceInstance(array $names): ServiceException
return new static(t('not_instance_of_service', $names), E_ERROR);
public static function undefinedMethod(string $name): ServiceException
return new static(t('exception.undefined_method', $name), E_ERROR);