aichenk/restful-exception

restful常用异常类

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/aichenk/restful-exception

1.1.0 2022-03-08 15:53 UTC

This package is auto-updated.

Last update: 2025-10-09 00:25:12 UTC


README

常用异常类

运行环境

  • PHP 7.2+

安装方法

    composer require aichenk/restful-exception

使用

throw new \RestfulException\NotLoginException('用户未登录');
throw new \RestfulException\InvalidArgumentException('id不正确');

异常说明

2022/03/20220308235259

更新日志

2022-03-08 - 1.1.0

  • 补充多种异常类,补充继承关系(如上图)