[BUGFIX] Throw correct Exceptions everywhere
authorSteffen Gebert <steffen.gebert@typo3.org>
Mon, 7 Mar 2011 16:13:25 +0000 (17:13 +0100)
committerAndreas Wolf <andreas.wolf@ikt-werk.de>
Tue, 8 Mar 2011 17:32:48 +0000 (18:32 +0100)
commit93cbf9073905fecb3a5e31b8df48bf429cbc2900
tree1481e46fd37bda71b0d2cc51c085d287c8535d83
parentaada4c979fc3edf09b7d446ad607bc879ee0e842
[BUGFIX] Throw correct Exceptions everywhere

Improve the way, TYPO3 is throwing Exceptions:

* Add a unique error code to all Exception($msg, $code) calls
* Replace die() statements with Exceptions, if possible
* Replace some general Exceptions with RuntimeException or ArgumentException.

Change-Id: Ic148f14b9a71136c917e9dc8b95513341b3c6ca0
Resolves: #M16953
Reviewed-on: http://review.typo3.org/1079
Reviewed-by: Andreas Wolf <andreas.wolf@ikt-werk.de>
Tested-by: Andreas Wolf <andreas.wolf@ikt-werk.de>
Reviewed-by: Steffen Ritter <info@rs-websystems.de>
39 files changed:
t3lib/class.t3lib_beuserauth.php
t3lib/class.t3lib_db.php
t3lib/class.t3lib_div.php
t3lib/class.t3lib_extmgm.php
t3lib/class.t3lib_lock.php
t3lib/class.t3lib_spritemanager.php
t3lib/class.t3lib_treeview.php
t3lib/class.t3lib_tsparser.php
t3lib/class.t3lib_userauthgroup.php
t3lib/extjs/class.t3lib_extjs_extdirectrouter.php
t3lib/formprotection/class.t3lib_formprotection_abstract.php
t3lib/mail/class.t3lib_mail_mailer.php
t3lib/mail/class.t3lib_mail_mboxtransport.php
t3lib/tree/class.t3lib_tree_node.php
t3lib/tree/class.t3lib_tree_nodecollection.php
t3lib/tree/tca/class.t3lib_tree_tca_databasetreedataprovider.php
t3lib/tree/tca/class.t3lib_tree_tca_dataproviderfactory.php
typo3/db_list.php
typo3/file_edit.php
typo3/file_list.php
typo3/file_newfolder.php
typo3/file_rename.php
typo3/file_upload.php
typo3/index.php
typo3/init.php
typo3/mod.php
typo3/sysext/cms/tslib/class.tslib_fe.php
typo3/sysext/cms/tslib/class.tslib_pagegen.php
typo3/sysext/cms/tslib/index_ts.php
typo3/sysext/cms/tslib/showpic.php
typo3/sysext/install/mod/class.tx_install.php
typo3/sysext/install/mod/class.tx_install_session.php
typo3/sysext/lang/lang.php
typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php
typo3/sysext/rtehtmlarea/pi1/class.tx_rtehtmlarea_pi1.php
typo3/sysext/scheduler/mod1/index.php
typo3/sysext/simulatestatic/class.tx_simulatestatic.php
typo3/wizard_forms.php
typo3/wizard_table.php