Error: Cannot access protected property JException::$code: Not found