<?php namespace app\common\service; class BaseService{ protected function error($msg){ throw_user($msg); } }