I would suggest to state here always the full namespace for exception - or use proper use alias if some overlappings are happening.
And if the php root exception is meant, use \Exception for it.
Example for use aliasing:
use Doctrine\DBAL\Driver\Exception as DoctrineDriverException;
use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
use SomeVendor\Exception as SomeVendorException;
use TYPO3\CMS\Core\Exception as Typo3Exception;
I would suggest to state here always the full namespace for exception - or use proper use alias if some overlappings are happening.
And if the php root exception is meant, use
\Exception
for it.Example for use aliasing:
and than use these directly in the throw tags
same for all other tags and exception classes - will not commet this on each usage for now.
_Originally posted by @sbuerk in https://github.com/sudhaus7/typo3-xlsimport/pull/35#discussion_r1451817536_