You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
437 B

  1. <?php
  2. namespace App\Libs;
  3. use App\Commons\Log;
  4. use Hyperf\Di\Annotation\Inject;
  5. use Throwable;
  6. class SSDBException extends \Exception
  7. {
  8. /**
  9. * @Inject
  10. * @var Log
  11. */
  12. protected $log;
  13. public function __construct($message = "", $code = 0, Throwable $previous = null)
  14. {
  15. $this->log->eventInTask('ssdb_exception', ['msg' => $message]);
  16. parent::__construct($message, $code, $previous);
  17. }
  18. }