Sets whether to catch exceptions or not during commands execution.
public setCatchExceptions ( boolean $boolean ) | ||
$boolean | boolean | Whether to catch exceptions or not during commands execution |
use Symfony\Component\Console\Application; $application = new Application(); $application->setCatchExceptions(true);
use Symfony\Component\Console\Application; $application = new Application(); $application->setCatchExceptions(false);Package Library: The package library used in these examples is Symfony Console Component.
public setCatchExceptions ( boolean $boolean ) | ||
$boolean | boolean | Whether to catch exceptions or not during commands execution |