NotFoundException.php 331 B

1234567891011121314
  1. <?php
  2. namespace SixShop\Core\Exception;
  3. use Exception;
  4. use think\exception\HttpResponseException;
  5. class NotFoundException extends HttpResponseException
  6. {
  7. public function __construct(Exception $e)
  8. {
  9. parent::__construct(error_response(msg:$e->getMessage(), status: 'not_found', code: 404, httpCode: 200));
  10. }
  11. }