*/ class SdException extends \Exception { public function __construct($msg, $code = 0, Throwable $previous = null) { if (is_array($msg)){ list($message, $var) = $msg; $message = lang($message, $var); }else{ $message = lang($msg); } parent::__construct($message, $code, $previous); } }