for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Maestriam\Samurai\Exceptions;
use Maestriam\Samurai\Exceptions\BaseException;
class InvalidDirectiveNameException extends BaseException
{
const CODE = '0201';
/**
* Define as configuração para enviar o exception
*
* @param string $name
*/
public function __construct(string $name)
$this->initialize($name);
}
* {@inheritDoc}
public function getErrorMessage() : string
return 'The [%s] is an invalid name. Its not possible to create an directive with special characters and start number.';
public function getErrorCode() : string
return self::CODE;