koatty_exception
Advanced tools
Comparing version 1.3.0-2 to 1.3.0-3
@@ -5,2 +5,9 @@ # Changelog | ||
## [1.3.0-3](https://github.com/koatty/koatty_exception/compare/v1.3.0-2...v1.3.0-3) (2024-01-21) | ||
### Bug Fixes | ||
* default value ([d7a620a](https://github.com/koatty/koatty_exception/commit/d7a620a65d3ff301c2097c1630a40877d30eaa5e)) | ||
## [1.3.0-2](https://github.com/koatty/koatty_exception/compare/v1.3.0-1...v1.3.0-2) (2024-01-21) | ||
@@ -7,0 +14,0 @@ |
/*! | ||
* @Author: richen | ||
* @Date: 2024-01-21 12:20:52 | ||
* @Date: 2024-01-21 13:06:58 | ||
* @License: BSD (3-Clause) | ||
@@ -26,7 +26,7 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
* @param {string} message err message | ||
* @param {*} code err code | ||
* @param {*} status http status | ||
* @param {number} code err code | ||
* @param {number} status http status | ||
* @param {string} stack err stack | ||
* @param {Span} span opentracing span | ||
* @return {*} | ||
* @return {Exception} | ||
*/ | ||
@@ -33,0 +33,0 @@ constructor(message: string, code?: number, status?: number, stack?: string, span?: Span); |
/*! | ||
* @Author: richen | ||
* @Date: 2024-01-21 12:20:43 | ||
* @Date: 2024-01-21 13:06:49 | ||
* @License: BSD (3-Clause) | ||
@@ -647,10 +647,12 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
* @param {string} message err message | ||
* @param {*} code err code | ||
* @param {*} status http status | ||
* @param {number} code err code | ||
* @param {number} status http status | ||
* @param {string} stack err stack | ||
* @param {Span} span opentracing span | ||
* @return {*} | ||
* @return {Exception} | ||
*/ | ||
constructor(message, code = 1, status = 0, stack, span) { | ||
constructor(message, code, status, stack, span) { | ||
super(message); | ||
this.status = 500; | ||
this.code = 1; | ||
this.type = "Exception"; | ||
@@ -657,0 +659,0 @@ this.status = status; |
{ | ||
"name": "koatty_exception", | ||
"version": "1.3.0-2", | ||
"version": "1.3.0-3", | ||
"description": "Exception handler for koatty.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
{ | ||
"name": "koatty_exception", | ||
"version": "1.3.0-2", | ||
"version": "1.3.0-3", | ||
"description": "Exception handler for koatty.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
98019
2071