<?php namespace App\Exceptions\Company; use App\Exceptions\Api\ApiException; class ShopException extends ApiException { // 错误返回码 protected $errCode = 'error'; // 本地化前缀 protected $langkey = 'company_shop'; }