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 InvalidThemeNameException extends BaseException
{
const CODE = '0101';
/**
* 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 name [%s] is an invalid. It's not possible to create a theme with special characters and which starts with numbers. ";
public function getErrorCode() : string
return self::CODE;