├── .eslintrc.js ├── .github └── workflows │ ├── codeql-analysis.yml │ ├── nodejs.yml │ └── release.yml ├── .gitignore ├── CHANGELOG.md ├── History.md ├── LICENSE ├── README.md ├── lib ├── base.ts ├── base_error.ts ├── base_exception.ts ├── error.ts ├── error_options.ts ├── error_type.ts ├── exception.ts ├── framework │ ├── formatter.ts │ └── framework_base_error.ts ├── http │ ├── 400.ts │ ├── 401.ts │ ├── 402.ts │ ├── 403.ts │ ├── 404.ts │ ├── 405.ts │ ├── 406.ts │ ├── 407.ts │ ├── 408.ts │ ├── 409.ts │ ├── 410.ts │ ├── 411.ts │ ├── 412.ts │ ├── 413.ts │ ├── 414.ts │ ├── 415.ts │ ├── 416.ts │ ├── 417.ts │ ├── 418.ts │ ├── 421.ts │ ├── 422.ts │ ├── 423.ts │ ├── 424.ts │ ├── 425.ts │ ├── 426.ts │ ├── 428.ts │ ├── 429.ts │ ├── 431.ts │ ├── 451.ts │ ├── 500.ts │ ├── 501.ts │ ├── 502.ts │ ├── 503.ts │ ├── 504.ts │ ├── 505.ts │ ├── 506.ts │ ├── 507.ts │ ├── 508.ts │ ├── 509.ts │ ├── 510.ts │ ├── 511.ts │ ├── http_error.ts │ ├── http_error_options.ts │ └── http_header.ts └── index.ts ├── package.json ├── scripts └── generator.js ├── test ├── error.test.ts ├── framework │ ├── formatter.test.ts │ └── framework_base_error.test.ts ├── global.d.ts └── http │ ├── 400.test.ts │ ├── 401.test.ts │ ├── 402.test.ts │ ├── 403.test.ts │ ├── 404.test.ts │ ├── 405.test.ts │ ├── 406.test.ts │ ├── 407.test.ts │ ├── 408.test.ts │ ├── 409.test.ts │ ├── 410.test.ts │ ├── 411.test.ts │ ├── 412.test.ts │ ├── 413.test.ts │ ├── 414.test.ts │ ├── 415.test.ts │ ├── 416.test.ts │ ├── 417.test.ts │ ├── 418.test.ts │ ├── 421.test.ts │ ├── 422.test.ts │ ├── 423.test.ts │ ├── 424.test.ts │ ├── 425.test.ts │ ├── 426.test.ts │ ├── 428.test.ts │ ├── 429.test.ts │ ├── 431.test.ts │ ├── 451.test.ts │ ├── 500.test.ts │ ├── 501.test.ts │ ├── 502.test.ts │ ├── 503.test.ts │ ├── 504.test.ts │ ├── 505.test.ts │ ├── 506.test.ts │ ├── 507.test.ts │ ├── 508.test.ts │ ├── 509.test.ts │ ├── 510.test.ts │ └── 511.test.ts └── tsconfig.json /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.github/workflows/nodejs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/.github/workflows/nodejs.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /History.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/History.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/README.md -------------------------------------------------------------------------------- /lib/base.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/base.ts -------------------------------------------------------------------------------- /lib/base_error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/base_error.ts -------------------------------------------------------------------------------- /lib/base_exception.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/base_exception.ts -------------------------------------------------------------------------------- /lib/error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/error.ts -------------------------------------------------------------------------------- /lib/error_options.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/error_options.ts -------------------------------------------------------------------------------- /lib/error_type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/error_type.ts -------------------------------------------------------------------------------- /lib/exception.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/exception.ts -------------------------------------------------------------------------------- /lib/framework/formatter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/framework/formatter.ts -------------------------------------------------------------------------------- /lib/framework/framework_base_error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/framework/framework_base_error.ts -------------------------------------------------------------------------------- /lib/http/400.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/400.ts -------------------------------------------------------------------------------- /lib/http/401.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/401.ts -------------------------------------------------------------------------------- /lib/http/402.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/402.ts -------------------------------------------------------------------------------- /lib/http/403.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/403.ts -------------------------------------------------------------------------------- /lib/http/404.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/404.ts -------------------------------------------------------------------------------- /lib/http/405.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/405.ts -------------------------------------------------------------------------------- /lib/http/406.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/406.ts -------------------------------------------------------------------------------- /lib/http/407.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/407.ts -------------------------------------------------------------------------------- /lib/http/408.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/408.ts -------------------------------------------------------------------------------- /lib/http/409.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/409.ts -------------------------------------------------------------------------------- /lib/http/410.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/410.ts -------------------------------------------------------------------------------- /lib/http/411.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/411.ts -------------------------------------------------------------------------------- /lib/http/412.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/412.ts -------------------------------------------------------------------------------- /lib/http/413.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/413.ts -------------------------------------------------------------------------------- /lib/http/414.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/414.ts -------------------------------------------------------------------------------- /lib/http/415.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/415.ts -------------------------------------------------------------------------------- /lib/http/416.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/416.ts -------------------------------------------------------------------------------- /lib/http/417.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/417.ts -------------------------------------------------------------------------------- /lib/http/418.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/418.ts -------------------------------------------------------------------------------- /lib/http/421.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/421.ts -------------------------------------------------------------------------------- /lib/http/422.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/422.ts -------------------------------------------------------------------------------- /lib/http/423.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/423.ts -------------------------------------------------------------------------------- /lib/http/424.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/424.ts -------------------------------------------------------------------------------- /lib/http/425.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/425.ts -------------------------------------------------------------------------------- /lib/http/426.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/426.ts -------------------------------------------------------------------------------- /lib/http/428.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/428.ts -------------------------------------------------------------------------------- /lib/http/429.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/429.ts -------------------------------------------------------------------------------- /lib/http/431.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/431.ts -------------------------------------------------------------------------------- /lib/http/451.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/451.ts -------------------------------------------------------------------------------- /lib/http/500.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/500.ts -------------------------------------------------------------------------------- /lib/http/501.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/501.ts -------------------------------------------------------------------------------- /lib/http/502.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/502.ts -------------------------------------------------------------------------------- /lib/http/503.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/503.ts -------------------------------------------------------------------------------- /lib/http/504.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/504.ts -------------------------------------------------------------------------------- /lib/http/505.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/505.ts -------------------------------------------------------------------------------- /lib/http/506.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/506.ts -------------------------------------------------------------------------------- /lib/http/507.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/507.ts -------------------------------------------------------------------------------- /lib/http/508.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/508.ts -------------------------------------------------------------------------------- /lib/http/509.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/509.ts -------------------------------------------------------------------------------- /lib/http/510.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/510.ts -------------------------------------------------------------------------------- /lib/http/511.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/511.ts -------------------------------------------------------------------------------- /lib/http/http_error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/http_error.ts -------------------------------------------------------------------------------- /lib/http/http_error_options.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/http/http_error_options.ts -------------------------------------------------------------------------------- /lib/http/http_header.ts: -------------------------------------------------------------------------------- 1 | export default interface HttpHeader { 2 | [key: string]: any; 3 | } 4 | -------------------------------------------------------------------------------- /lib/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/lib/index.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/package.json -------------------------------------------------------------------------------- /scripts/generator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/scripts/generator.js -------------------------------------------------------------------------------- /test/error.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/error.test.ts -------------------------------------------------------------------------------- /test/framework/formatter.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/framework/formatter.test.ts -------------------------------------------------------------------------------- /test/framework/framework_base_error.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/framework/framework_base_error.test.ts -------------------------------------------------------------------------------- /test/global.d.ts: -------------------------------------------------------------------------------- 1 | interface Error { 2 | [key: string]: any; 3 | } 4 | -------------------------------------------------------------------------------- /test/http/400.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/400.test.ts -------------------------------------------------------------------------------- /test/http/401.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/401.test.ts -------------------------------------------------------------------------------- /test/http/402.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/402.test.ts -------------------------------------------------------------------------------- /test/http/403.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/403.test.ts -------------------------------------------------------------------------------- /test/http/404.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/404.test.ts -------------------------------------------------------------------------------- /test/http/405.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/405.test.ts -------------------------------------------------------------------------------- /test/http/406.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/406.test.ts -------------------------------------------------------------------------------- /test/http/407.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/407.test.ts -------------------------------------------------------------------------------- /test/http/408.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/408.test.ts -------------------------------------------------------------------------------- /test/http/409.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/409.test.ts -------------------------------------------------------------------------------- /test/http/410.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/410.test.ts -------------------------------------------------------------------------------- /test/http/411.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/411.test.ts -------------------------------------------------------------------------------- /test/http/412.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/412.test.ts -------------------------------------------------------------------------------- /test/http/413.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/413.test.ts -------------------------------------------------------------------------------- /test/http/414.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/414.test.ts -------------------------------------------------------------------------------- /test/http/415.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/415.test.ts -------------------------------------------------------------------------------- /test/http/416.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/416.test.ts -------------------------------------------------------------------------------- /test/http/417.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/417.test.ts -------------------------------------------------------------------------------- /test/http/418.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/418.test.ts -------------------------------------------------------------------------------- /test/http/421.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/421.test.ts -------------------------------------------------------------------------------- /test/http/422.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/422.test.ts -------------------------------------------------------------------------------- /test/http/423.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/423.test.ts -------------------------------------------------------------------------------- /test/http/424.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/424.test.ts -------------------------------------------------------------------------------- /test/http/425.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/425.test.ts -------------------------------------------------------------------------------- /test/http/426.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/426.test.ts -------------------------------------------------------------------------------- /test/http/428.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/428.test.ts -------------------------------------------------------------------------------- /test/http/429.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/429.test.ts -------------------------------------------------------------------------------- /test/http/431.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/431.test.ts -------------------------------------------------------------------------------- /test/http/451.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/451.test.ts -------------------------------------------------------------------------------- /test/http/500.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/500.test.ts -------------------------------------------------------------------------------- /test/http/501.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/501.test.ts -------------------------------------------------------------------------------- /test/http/502.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/502.test.ts -------------------------------------------------------------------------------- /test/http/503.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/503.test.ts -------------------------------------------------------------------------------- /test/http/504.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/504.test.ts -------------------------------------------------------------------------------- /test/http/505.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/505.test.ts -------------------------------------------------------------------------------- /test/http/506.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/506.test.ts -------------------------------------------------------------------------------- /test/http/507.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/507.test.ts -------------------------------------------------------------------------------- /test/http/508.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/508.test.ts -------------------------------------------------------------------------------- /test/http/509.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/509.test.ts -------------------------------------------------------------------------------- /test/http/510.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/510.test.ts -------------------------------------------------------------------------------- /test/http/511.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/test/http/511.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-errors/HEAD/tsconfig.json --------------------------------------------------------------------------------