// public function __toString() // { // \Cli::write('Error: ' . $this->message); // }
<?php namespace Fuel\Tasks; class Test { public static function run() { try { throw new \Exception("test"); } catch (\Exception $e) { echo "Exception caught!"; } } }and this catches the exception just fine? When I replace the 'throw' by a call to an application class that I know throws an exception ( for example Cache::get('doesnexist'); ) it still works fine? Are you using an old version of FuelPHP, or perhaps of the oil package?
It looks like you're new here. If you want to get involved, click one of these buttons!