for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Maestriam\Samurai\Exceptions;
use Illuminate\Support\Facades\Lang;
use Maestriam\Samurai\Exceptions\BaseException;
class DirectiveExistsException extends BaseException
{
const CODE = '0202';
/**
* Define as configuração para enviar o exception
*
* @param string $name
*/
public function __construct(string $theme, string $name)
$this->initialize($theme, $name);
}
* {@inheritDoc}
public function getErrorMessage(): string
return 'The [%s] directive already exists in [%s] theme.';
public function getErrorCode(): string
return self::CODE;