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 InvalidAuthorException extends BaseException
{
const CODE = '0104';
public function __construct($author)
$this->initialize($author);
}
/**
* {@inheritDoc}
*/
public function getErrorMessage() : string
return 'The author name [%s] is an invalid author name. E.g: Name <[email protected]>';
public function getErrorCode() : string
return self::CODE;