koatty_exception
Advanced tools
Comparing version 1.5.2 to 1.5.3
@@ -5,2 +5,9 @@ # Changelog | ||
### [1.5.3](https://github.com/koatty/koatty_exception/compare/v1.5.2...v1.5.3) (2024-11-12) | ||
### Bug Fixes | ||
* return string message ([ad45d1a](https://github.com/koatty/koatty_exception/commit/ad45d1a1442efa9367735605a6287d7f346df224)) | ||
### [1.5.2](https://github.com/koatty/koatty_exception/compare/v1.5.1...v1.5.2) (2024-11-07) | ||
@@ -7,0 +14,0 @@ |
/*! | ||
* @Author: richen | ||
* @Date: 2024-11-07 18:50:29 | ||
* @Date: 2024-11-12 11:39:57 | ||
* @License: BSD (3-Clause) | ||
@@ -5,0 +5,0 @@ * @Copyright (c) - <richenlin(at)gmail.com> |
/*! | ||
* @Author: richen | ||
* @Date: 2024-11-07 18:50:07 | ||
* @Date: 2024-11-12 11:39:42 | ||
* @License: BSD (3-Clause) | ||
@@ -586,3 +586,3 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
code: code, | ||
message: "", | ||
message: err, | ||
data: data | ||
@@ -641,5 +641,2 @@ }; | ||
class Exception extends Error { | ||
status = 500; | ||
code = 1; | ||
span; | ||
/** | ||
@@ -656,2 +653,4 @@ * @description: Creates an instance of Exception. | ||
super(message); | ||
this.status = 500; | ||
this.code = 1; | ||
this.setCode(code); | ||
@@ -658,0 +657,0 @@ this.setStatus(status); |
{ | ||
"name": "koatty_exception", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"description": "Exception handler for koatty.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
{ | ||
"name": "koatty_exception", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"description": "Exception handler for koatty.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
104562
2098