コード例 #1
0
ファイル: API.class.php プロジェクト: performics/ga-cli-api
 public function __construct()
 {
     try {
         if (!self::$_staticPropsReady) {
             self::_initStaticProperties();
         }
         $this->_logger = new \Logger(GOOGLE_MYBUSINESS_API_LOG_FILE, GOOGLE_MYBUSINESS_API_LOG_EMAIL, self::$_apiMutex);
         if (!\LoggingExceptions\Exception::hasLogger()) {
             \LoggingExceptions\Exception::registerLogger($this->_logger);
         }
         $this->_EXCEPTION_TYPE = __NAMESPACE__ . '\\RuntimeException';
     } catch (\Exception $e) {
         if ($e instanceof Exception) {
             throw $e;
         }
         throw new RuntimeException('Encountered error during initialization.', null, $e);
     }
 }