[TYPO3-core] RFC #7357: Use exceptions to detect missing user function

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Sun Feb 3 21:02:45 CET 2008


Ingo Renner schrieb:
> Martin Kutschker wrote:
> 
> 
>> But what specific exceptions you are referring to? AFAIK there is no 
>> system for them in TYPO3. I didn't want to invent them on-the-fly. So 
>> feel free to suggest one.
> 
> how about a BadMethodCallException?
> 
> see: http://www.php.net/~helly/php/ext/spl/classException.html

I'd favour InvalidArgumentException, at least for the "not prepended 
with user_" error. But are these execptions also "free" to use? I mean, 
there's no docs whatsoever on php.net and the linked Doxygen docs aren't 
that great either.

Masi


More information about the TYPO3-team-core mailing list