@duvdu-v1/duvdu 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,7 +9,7 @@ class BadRequestError extends custom_error_1.CustomError {
|
|
|
9
9
|
Object.setPrototypeOf(this, BadRequestError.prototype);
|
|
10
10
|
}
|
|
11
11
|
serializeError() {
|
|
12
|
-
return [{ message: this.message }];
|
|
12
|
+
return [{ message: this.message || 'bad-request error' }];
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
exports.BadRequestError = BadRequestError;
|
|
@@ -9,7 +9,7 @@ class NotFound extends custom_error_1.CustomError {
|
|
|
9
9
|
Object.setPrototypeOf(this, NotFound.prototype);
|
|
10
10
|
}
|
|
11
11
|
serializeError() {
|
|
12
|
-
return [{ message: 'not found error' }];
|
|
12
|
+
return [{ message: this.message || 'not found error' }];
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
exports.NotFound = NotFound;
|
|
@@ -9,7 +9,7 @@ class UnauthenticatedError extends custom_error_1.CustomError {
|
|
|
9
9
|
Object.setPrototypeOf(this, UnauthenticatedError.prototype);
|
|
10
10
|
}
|
|
11
11
|
serializeError() {
|
|
12
|
-
return [{ message: 'un-authenticated error' }];
|
|
12
|
+
return [{ message: this.message || 'un-authenticated error' }];
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
exports.UnauthenticatedError = UnauthenticatedError;
|
|
@@ -9,7 +9,7 @@ class UnauthorizedError extends custom_error_1.CustomError {
|
|
|
9
9
|
Object.setPrototypeOf(this, UnauthorizedError.prototype);
|
|
10
10
|
}
|
|
11
11
|
serializeError() {
|
|
12
|
-
return [{ message: 'un-unauthorized error' }];
|
|
12
|
+
return [{ message: this.message || 'un-unauthorized error' }];
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
exports.UnauthorizedError = UnauthorizedError;
|