common.php(一个component) function getVersionTxtInfo(){
            //其它代码........
            if (count($fileContentItem) != VERSION_TXT_ITEM_COUNT)
        {
            throw new Exception("-1");
        }
            //其它代码.........
}
另一个controller:
     try{
        $fileContentItem=$this->Common->getVersionTxtInfo();
        $version=$fileContentItem[0];
        if(empty($version)){
            $version = "0";
        }
    }catch(Exception $ex){
        $version = "0";
                echo $e->getMessage();
    }Exception: -1 in C:\cakephpwork\myphpwork\app\controllers\components\common.php on line 60line 60就是common.php的throw new Exception("-1");那一行我都catch了,怎么还打出异常信息啊?名位大侠帮忙看下啊