<?phpnamespace App\Domain\Gateway\Entities\Exception;class GatewayGeneratorNotSupportedException extends \Exception{ protected $code = 'ERR_001'; protected $message = 'generator for gateway %s not found'; /** * @param $slug * @param $code * @param \Throwable|null $previous */ public function __construct($slug = "", $code = 0, \Throwable $previous = null) { parent::__construct($slug, $code, $previous); $this->message = sprintf($this->message, $slug); }}