[TYPO3-project-4-3] CGL Exceptions

Steffen Kamper info at sk-typo3.de
Mon Sep 29 09:55:10 CEST 2008


Hi,

i think we missed discussing about Exceptions at T3DD08, so maybe we can 
discuss it here.

What i want to clarify is
* naming convention of exceptions
* using error handlers for exception

Looking to trunk we already have several exceptions in core. Some 
general ones
* throw new Exception() in t3lib_div, t3lib_lock
some named ones
* UnexpectedValueException(msg, number)
* t3lib_cache_Exception
* InvalidArgumentException
* t3lib_cache_Exception_InvalidData
* t3lib_cache_exception_InvalidCache
* t3lib_cache_DuplicateIdentifier
* t3lib_cache_Exception_NoSuchCache
* t3lib_cache_exception_ClassAlreadyLoaded
* JSMinException (in 3rd party jsmin)
*

and error handler adodb_throw in adodb

(hope to catch all existing ones now)

one question before: how to generate the number as second param?

next: when defining exceptions we should use an error handler.
Where should this be, one central or extra ones for t3lib / tslib / 
backend etc. Anyway i would prefer to have the errorhandlers 
implemented, even if they are empty for the start.

vg Steffen


More information about the TYPO3-project-4-3 mailing list