[Flow] Exception vs. False

Carsten Bleicker carsten at bleicker.de
Thu Mar 13 13:34:01 CET 2014


There are several situations in flow i dont know why something does not work.
The reason is, that there are methods returning false instead of throwing an exception.
Example: \TYPO3\Flow\Resource\ResourceManager::importUploadedResource
This method has several points where something gets wrong. The only info i get ist the "false".
But i dont know what exactly went wrong. Now i have to go inside of this method and have to debug
from top to down to find out with line realy makes it "false".

anybody else having problems with flow to find the realy error producing code?
wouldnt it be better to strictly throw exteptions instead of magicaly return a false without further infos what realy went wrong?

kind regards
carsten


More information about the Flow mailing list