Example #1
0
 public static function printExceptionInfo(\Exception $e)
 {
     if ($e instanceof \CoreApi\Exception || $e instanceof \Flywheel\Exception\Api) {
         self::printError($e->getCode(), $e->getMessage());
     } else {
         if ($app = Base::getApp() && Base::ENV_PRO != Base::getEnv()) {
             \Flywheel\Exception::outputStackTrace($e, 'none');
         }
         self::printError($e->getCode());
     }
 }