setName('foo3:bar') ->setDescription('The foo3:bar command') ; } protected function execute(InputInterface $input, OutputInterface $output) { try { throw new \Exception("First exception"); } catch (\Exception $e) { throw new \Exception("Second exception", 0, $e); } } }