Cannot access protected property JException::$code