ApiException.php 357 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * @Name
  4. * @Description
  5. * @Author 刘学玺
  6. * @Date 2024/3/22 17:24
  7. */
  8. namespace App\Exceptions;
  9. use Exception;
  10. class ApiException extends Exception
  11. {
  12. public function __construct(array $apiErrorConst, \Throwable $previous = null)
  13. {
  14. parent::__construct($apiErrorConst['message'], $apiErrorConst['status'], $previous);
  15. }
  16. }