public function __construct($value) { parent::__construct($value); try { Assertion::notEmpty($value); } catch (AssertionInvalidArgumentException $e) { throw new StrNotEmptyException($value); } $this->value = $value; }