public function validate(UserInterface $u) { throw new UserException('User Exception'); echo $u->getToto('test'); }