@nr1e/commons 0.0.3-alpha.4 → 0.0.3-alpha.6
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.
- package/errors/errors.d.ts +50 -30
- package/errors/errors.js +72 -50
- package/errors/errors.js.map +1 -1
- package/package.json +1 -1
package/errors/errors.d.ts
CHANGED
|
@@ -5,46 +5,60 @@ export { isError } from '../lang';
|
|
|
5
5
|
* This can be useful in middleware error handlers to determine http status codes to return to the client.
|
|
6
6
|
*/
|
|
7
7
|
export interface HttpError extends Error {
|
|
8
|
+
/**
|
|
9
|
+
* The HTTP status code.
|
|
10
|
+
*/
|
|
8
11
|
statusCode: HttpStatusCode | number;
|
|
9
12
|
}
|
|
10
13
|
/**
|
|
11
14
|
* Checks if the given parameter is an HttpError.
|
|
12
15
|
*
|
|
13
|
-
* @param e
|
|
16
|
+
* @param e The parameter to check
|
|
14
17
|
*/
|
|
15
18
|
export declare function isHttpError(e?: unknown): e is HttpError;
|
|
19
|
+
/**
|
|
20
|
+
* Thrown when a resource cannot be found.
|
|
21
|
+
*/
|
|
22
|
+
export declare class NotFoundError extends Error implements HttpError {
|
|
23
|
+
readonly statusCode = HttpStatusCode.NOT_FOUND;
|
|
24
|
+
/**
|
|
25
|
+
* The max-age value to set in the Cache-Control header if used in a middleware.
|
|
26
|
+
*/
|
|
27
|
+
readonly maxAge?: number;
|
|
28
|
+
constructor(message?: string, maxAge?: number);
|
|
29
|
+
}
|
|
16
30
|
/**
|
|
17
31
|
* Checks if the given parameter is a NotFoundError.
|
|
18
32
|
*
|
|
19
|
-
* @param e
|
|
33
|
+
* @param e The parameter to check
|
|
20
34
|
*/
|
|
21
35
|
export declare function isNotFoundError(e?: unknown): e is NotFoundError;
|
|
22
36
|
/**
|
|
23
|
-
* Thrown when a
|
|
37
|
+
* Thrown when a request is missing authentication credentials.
|
|
24
38
|
*/
|
|
25
|
-
export declare class
|
|
26
|
-
readonly statusCode = HttpStatusCode.
|
|
39
|
+
export declare class UnauthorizedError extends Error implements HttpError {
|
|
40
|
+
readonly statusCode = HttpStatusCode.UNAUTHORIZED;
|
|
27
41
|
constructor(message?: string);
|
|
28
42
|
}
|
|
29
43
|
/**
|
|
30
|
-
* Checks if the given parameter is a
|
|
44
|
+
* Checks if the given parameter is a UnauthorizedError.
|
|
31
45
|
*
|
|
32
|
-
* @param e
|
|
46
|
+
* @param e The parameter to check
|
|
33
47
|
*/
|
|
34
|
-
export declare function
|
|
48
|
+
export declare function isUnauthorizedError(e?: unknown): e is UnauthorizedError;
|
|
35
49
|
/**
|
|
36
|
-
* Thrown when
|
|
50
|
+
* Thrown when credentials are present, but the requested operations is not allowed.
|
|
37
51
|
*/
|
|
38
52
|
export declare class ForbiddenError extends Error implements HttpError {
|
|
39
53
|
readonly statusCode = HttpStatusCode.FORBIDDEN;
|
|
40
54
|
constructor(message?: string);
|
|
41
55
|
}
|
|
42
56
|
/**
|
|
43
|
-
* Checks if the given
|
|
57
|
+
* Checks if the given parameter is a ForbiddenError.
|
|
44
58
|
*
|
|
45
|
-
* @param e
|
|
59
|
+
* @param e The parameter to check
|
|
46
60
|
*/
|
|
47
|
-
export declare function
|
|
61
|
+
export declare function isForbiddenError(e?: unknown): e is ForbiddenError;
|
|
48
62
|
/**
|
|
49
63
|
* Thrown when a validation error occurs.
|
|
50
64
|
*/
|
|
@@ -53,11 +67,11 @@ export declare class ValidationError extends Error implements HttpError {
|
|
|
53
67
|
constructor(message?: string);
|
|
54
68
|
}
|
|
55
69
|
/**
|
|
56
|
-
* Checks if the given
|
|
70
|
+
* Checks if the given variable is a ValidationError.
|
|
57
71
|
*
|
|
58
|
-
* @param e
|
|
72
|
+
* @param e The variable to check
|
|
59
73
|
*/
|
|
60
|
-
export declare function
|
|
74
|
+
export declare function isValidationError(e?: unknown): e is ValidationError;
|
|
61
75
|
/**
|
|
62
76
|
* Thrown when a bad request is made.
|
|
63
77
|
*/
|
|
@@ -66,11 +80,11 @@ export declare class BadRequestError extends Error implements HttpError {
|
|
|
66
80
|
constructor(message?: string);
|
|
67
81
|
}
|
|
68
82
|
/**
|
|
69
|
-
* Checks if the given parameter is a
|
|
83
|
+
* Checks if the given parameter is a BadRequestError.
|
|
70
84
|
*
|
|
71
|
-
* @param e
|
|
85
|
+
* @param e The parameter to check
|
|
72
86
|
*/
|
|
73
|
-
export declare function
|
|
87
|
+
export declare function isBadRequestError(e?: unknown): e is BadRequestError;
|
|
74
88
|
/**
|
|
75
89
|
* Throws when an internal server error occurs.
|
|
76
90
|
*/
|
|
@@ -79,11 +93,11 @@ export declare class InternalServerError extends Error implements HttpError {
|
|
|
79
93
|
constructor(message?: string);
|
|
80
94
|
}
|
|
81
95
|
/**
|
|
82
|
-
* Checks if the given parameter is a
|
|
96
|
+
* Checks if the given parameter is a InternalServerError.
|
|
83
97
|
*
|
|
84
|
-
* @param e
|
|
98
|
+
* @param e The parameter to check
|
|
85
99
|
*/
|
|
86
|
-
export declare function
|
|
100
|
+
export declare function isInternalServerError(e?: unknown): e is InternalServerError;
|
|
87
101
|
/**
|
|
88
102
|
* Thrown when a conflict occurs.
|
|
89
103
|
*/
|
|
@@ -92,11 +106,11 @@ export declare class ConflictError extends Error implements HttpError {
|
|
|
92
106
|
constructor(message?: string);
|
|
93
107
|
}
|
|
94
108
|
/**
|
|
95
|
-
* Checks if the given parameter is a
|
|
109
|
+
* Checks if the given parameter is a ConflictError.
|
|
96
110
|
*
|
|
97
|
-
* @param e
|
|
111
|
+
* @param e The parameter to check
|
|
98
112
|
*/
|
|
99
|
-
export declare function
|
|
113
|
+
export declare function isConflictError(e?: unknown): e is ConflictError;
|
|
100
114
|
/**
|
|
101
115
|
* Thrown when a unsupported media type is used.
|
|
102
116
|
*/
|
|
@@ -105,11 +119,11 @@ export declare class UnsupportedMediaTypeError extends Error implements HttpErro
|
|
|
105
119
|
constructor(message?: string);
|
|
106
120
|
}
|
|
107
121
|
/**
|
|
108
|
-
* Checks if the given parameter is a
|
|
122
|
+
* Checks if the given parameter is a UnsupportedMediaTypeError.
|
|
109
123
|
*
|
|
110
|
-
* @param e
|
|
124
|
+
* @param e The parameter to check
|
|
111
125
|
*/
|
|
112
|
-
export declare function
|
|
126
|
+
export declare function isUnsupportedMediaTypeError(e?: unknown): e is UnsupportedMediaTypeError;
|
|
113
127
|
/**
|
|
114
128
|
* Thrown when a requested operation is not implemented.
|
|
115
129
|
*/
|
|
@@ -119,11 +133,11 @@ export declare class NotImplementedError extends Error implements HttpError {
|
|
|
119
133
|
constructor(message?: string);
|
|
120
134
|
}
|
|
121
135
|
/**
|
|
122
|
-
* Checks if the given parameter is a
|
|
136
|
+
* Checks if the given parameter is a NotImplementedError.
|
|
123
137
|
*
|
|
124
|
-
* @param e
|
|
138
|
+
* @param e The parameter to check
|
|
125
139
|
*/
|
|
126
|
-
export declare function
|
|
140
|
+
export declare function isNotImplementedError(e?: unknown): e is NotImplementedError;
|
|
127
141
|
/**
|
|
128
142
|
* Thrown when an illegal argument is passed to a function.
|
|
129
143
|
*/
|
|
@@ -131,6 +145,12 @@ export declare class IllegalArgumentError extends Error {
|
|
|
131
145
|
readonly argName: string;
|
|
132
146
|
constructor(argName: string, message?: string);
|
|
133
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* Checks if the given parameter is a IllegalArgumentError.
|
|
150
|
+
*
|
|
151
|
+
* @param e The parameter to check
|
|
152
|
+
*/
|
|
153
|
+
export declare function isIllegalArgumentError(e?: unknown): e is IllegalArgumentError;
|
|
134
154
|
/**
|
|
135
155
|
* Converts the given parameter to an HttpError.
|
|
136
156
|
*
|
package/errors/errors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toError = exports.IllegalArgumentError = exports.
|
|
3
|
+
exports.toError = exports.isIllegalArgumentError = exports.IllegalArgumentError = exports.isNotImplementedError = exports.NotImplementedError = exports.isUnsupportedMediaTypeError = exports.UnsupportedMediaTypeError = exports.isConflictError = exports.ConflictError = exports.isInternalServerError = exports.InternalServerError = exports.isBadRequestError = exports.BadRequestError = exports.isValidationError = exports.ValidationError = exports.isForbiddenError = exports.ForbiddenError = exports.isUnauthorizedError = exports.UnauthorizedError = exports.isNotFoundError = exports.NotFoundError = exports.isHttpError = exports.isError = void 0;
|
|
4
4
|
const http_1 = require("../http");
|
|
5
5
|
const lang_1 = require("../lang");
|
|
6
6
|
var lang_2 = require("../lang");
|
|
@@ -8,44 +8,57 @@ Object.defineProperty(exports, "isError", { enumerable: true, get: function () {
|
|
|
8
8
|
/**
|
|
9
9
|
* Checks if the given parameter is an HttpError.
|
|
10
10
|
*
|
|
11
|
-
* @param e
|
|
11
|
+
* @param e The parameter to check
|
|
12
12
|
*/
|
|
13
13
|
function isHttpError(e) {
|
|
14
14
|
return (0, lang_1.isObject)(e) && !!(e && e.stack && e.statusCode && e.message && e.name);
|
|
15
15
|
}
|
|
16
16
|
exports.isHttpError = isHttpError;
|
|
17
|
+
/**
|
|
18
|
+
* Thrown when a resource cannot be found.
|
|
19
|
+
*/
|
|
20
|
+
class NotFoundError extends Error {
|
|
21
|
+
constructor(message, maxAge) {
|
|
22
|
+
message = message !== null && message !== void 0 ? message : 'Not found';
|
|
23
|
+
super(message);
|
|
24
|
+
this.statusCode = http_1.HttpStatusCode.NOT_FOUND;
|
|
25
|
+
this.name = 'NotFoundError';
|
|
26
|
+
this.maxAge = maxAge;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.NotFoundError = NotFoundError;
|
|
17
30
|
/**
|
|
18
31
|
* Checks if the given parameter is a NotFoundError.
|
|
19
32
|
*
|
|
20
|
-
* @param e
|
|
33
|
+
* @param e The parameter to check
|
|
21
34
|
*/
|
|
22
35
|
function isNotFoundError(e) {
|
|
23
36
|
return isHttpError(e) && e.name === 'NotFoundError';
|
|
24
37
|
}
|
|
25
38
|
exports.isNotFoundError = isNotFoundError;
|
|
26
39
|
/**
|
|
27
|
-
* Thrown when a
|
|
40
|
+
* Thrown when a request is missing authentication credentials.
|
|
28
41
|
*/
|
|
29
|
-
class
|
|
42
|
+
class UnauthorizedError extends Error {
|
|
30
43
|
constructor(message) {
|
|
31
|
-
message = message !== null && message !== void 0 ? message : '
|
|
44
|
+
message = message !== null && message !== void 0 ? message : 'Unauthorized';
|
|
32
45
|
super(message);
|
|
33
|
-
this.statusCode = http_1.HttpStatusCode.
|
|
34
|
-
this.name = '
|
|
46
|
+
this.statusCode = http_1.HttpStatusCode.UNAUTHORIZED;
|
|
47
|
+
this.name = 'UnauthorizedError';
|
|
35
48
|
}
|
|
36
49
|
}
|
|
37
|
-
exports.
|
|
50
|
+
exports.UnauthorizedError = UnauthorizedError;
|
|
38
51
|
/**
|
|
39
|
-
* Checks if the given parameter is a
|
|
52
|
+
* Checks if the given parameter is a UnauthorizedError.
|
|
40
53
|
*
|
|
41
|
-
* @param e
|
|
54
|
+
* @param e The parameter to check
|
|
42
55
|
*/
|
|
43
|
-
function
|
|
44
|
-
return isHttpError(e) && e.name === '
|
|
56
|
+
function isUnauthorizedError(e) {
|
|
57
|
+
return isHttpError(e) && e.name === 'UnauthorizedError';
|
|
45
58
|
}
|
|
46
|
-
exports.
|
|
59
|
+
exports.isUnauthorizedError = isUnauthorizedError;
|
|
47
60
|
/**
|
|
48
|
-
* Thrown when
|
|
61
|
+
* Thrown when credentials are present, but the requested operations is not allowed.
|
|
49
62
|
*/
|
|
50
63
|
class ForbiddenError extends Error {
|
|
51
64
|
constructor(message) {
|
|
@@ -57,14 +70,14 @@ class ForbiddenError extends Error {
|
|
|
57
70
|
}
|
|
58
71
|
exports.ForbiddenError = ForbiddenError;
|
|
59
72
|
/**
|
|
60
|
-
* Checks if the given
|
|
73
|
+
* Checks if the given parameter is a ForbiddenError.
|
|
61
74
|
*
|
|
62
|
-
* @param e
|
|
75
|
+
* @param e The parameter to check
|
|
63
76
|
*/
|
|
64
|
-
function
|
|
65
|
-
return isHttpError(e) && e.name === '
|
|
77
|
+
function isForbiddenError(e) {
|
|
78
|
+
return isHttpError(e) && e.name === 'ForbiddenError';
|
|
66
79
|
}
|
|
67
|
-
exports.
|
|
80
|
+
exports.isForbiddenError = isForbiddenError;
|
|
68
81
|
/**
|
|
69
82
|
* Thrown when a validation error occurs.
|
|
70
83
|
*/
|
|
@@ -78,14 +91,14 @@ class ValidationError extends Error {
|
|
|
78
91
|
}
|
|
79
92
|
exports.ValidationError = ValidationError;
|
|
80
93
|
/**
|
|
81
|
-
* Checks if the given
|
|
94
|
+
* Checks if the given variable is a ValidationError.
|
|
82
95
|
*
|
|
83
|
-
* @param e
|
|
96
|
+
* @param e The variable to check
|
|
84
97
|
*/
|
|
85
|
-
function
|
|
86
|
-
return isHttpError(e) && e.name === '
|
|
98
|
+
function isValidationError(e) {
|
|
99
|
+
return isHttpError(e) && e.name === 'ValidationError';
|
|
87
100
|
}
|
|
88
|
-
exports.
|
|
101
|
+
exports.isValidationError = isValidationError;
|
|
89
102
|
/**
|
|
90
103
|
* Thrown when a bad request is made.
|
|
91
104
|
*/
|
|
@@ -99,14 +112,14 @@ class BadRequestError extends Error {
|
|
|
99
112
|
}
|
|
100
113
|
exports.BadRequestError = BadRequestError;
|
|
101
114
|
/**
|
|
102
|
-
* Checks if the given parameter is a
|
|
115
|
+
* Checks if the given parameter is a BadRequestError.
|
|
103
116
|
*
|
|
104
|
-
* @param e
|
|
117
|
+
* @param e The parameter to check
|
|
105
118
|
*/
|
|
106
|
-
function
|
|
107
|
-
return isHttpError(e) && e.name === '
|
|
119
|
+
function isBadRequestError(e) {
|
|
120
|
+
return isHttpError(e) && e.name === 'BadRequestError';
|
|
108
121
|
}
|
|
109
|
-
exports.
|
|
122
|
+
exports.isBadRequestError = isBadRequestError;
|
|
110
123
|
/**
|
|
111
124
|
* Throws when an internal server error occurs.
|
|
112
125
|
*/
|
|
@@ -120,14 +133,14 @@ class InternalServerError extends Error {
|
|
|
120
133
|
}
|
|
121
134
|
exports.InternalServerError = InternalServerError;
|
|
122
135
|
/**
|
|
123
|
-
* Checks if the given parameter is a
|
|
136
|
+
* Checks if the given parameter is a InternalServerError.
|
|
124
137
|
*
|
|
125
|
-
* @param e
|
|
138
|
+
* @param e The parameter to check
|
|
126
139
|
*/
|
|
127
|
-
function
|
|
128
|
-
return isHttpError(e) && e.name === '
|
|
140
|
+
function isInternalServerError(e) {
|
|
141
|
+
return isHttpError(e) && e.name === 'InternalServerError';
|
|
129
142
|
}
|
|
130
|
-
exports.
|
|
143
|
+
exports.isInternalServerError = isInternalServerError;
|
|
131
144
|
/**
|
|
132
145
|
* Thrown when a conflict occurs.
|
|
133
146
|
*/
|
|
@@ -141,14 +154,14 @@ class ConflictError extends Error {
|
|
|
141
154
|
}
|
|
142
155
|
exports.ConflictError = ConflictError;
|
|
143
156
|
/**
|
|
144
|
-
* Checks if the given parameter is a
|
|
157
|
+
* Checks if the given parameter is a ConflictError.
|
|
145
158
|
*
|
|
146
|
-
* @param e
|
|
159
|
+
* @param e The parameter to check
|
|
147
160
|
*/
|
|
148
|
-
function
|
|
149
|
-
return isHttpError(e) && e.name === '
|
|
161
|
+
function isConflictError(e) {
|
|
162
|
+
return isHttpError(e) && e.name === 'ConflictError';
|
|
150
163
|
}
|
|
151
|
-
exports.
|
|
164
|
+
exports.isConflictError = isConflictError;
|
|
152
165
|
/**
|
|
153
166
|
* Thrown when a unsupported media type is used.
|
|
154
167
|
*/
|
|
@@ -162,14 +175,14 @@ class UnsupportedMediaTypeError extends Error {
|
|
|
162
175
|
}
|
|
163
176
|
exports.UnsupportedMediaTypeError = UnsupportedMediaTypeError;
|
|
164
177
|
/**
|
|
165
|
-
* Checks if the given parameter is a
|
|
178
|
+
* Checks if the given parameter is a UnsupportedMediaTypeError.
|
|
166
179
|
*
|
|
167
|
-
* @param e
|
|
180
|
+
* @param e The parameter to check
|
|
168
181
|
*/
|
|
169
|
-
function
|
|
170
|
-
return isHttpError(e) && e.name === '
|
|
182
|
+
function isUnsupportedMediaTypeError(e) {
|
|
183
|
+
return isHttpError(e) && e.name === 'UnsupportedMediaTypeError';
|
|
171
184
|
}
|
|
172
|
-
exports.
|
|
185
|
+
exports.isUnsupportedMediaTypeError = isUnsupportedMediaTypeError;
|
|
173
186
|
/**
|
|
174
187
|
* Thrown when a requested operation is not implemented.
|
|
175
188
|
*/
|
|
@@ -184,14 +197,14 @@ class NotImplementedError extends Error {
|
|
|
184
197
|
}
|
|
185
198
|
exports.NotImplementedError = NotImplementedError;
|
|
186
199
|
/**
|
|
187
|
-
* Checks if the given parameter is a
|
|
200
|
+
* Checks if the given parameter is a NotImplementedError.
|
|
188
201
|
*
|
|
189
|
-
* @param e
|
|
202
|
+
* @param e The parameter to check
|
|
190
203
|
*/
|
|
191
|
-
function
|
|
192
|
-
return (
|
|
204
|
+
function isNotImplementedError(e) {
|
|
205
|
+
return isHttpError(e) && e.name === 'NotImplementedError';
|
|
193
206
|
}
|
|
194
|
-
exports.
|
|
207
|
+
exports.isNotImplementedError = isNotImplementedError;
|
|
195
208
|
/**
|
|
196
209
|
* Thrown when an illegal argument is passed to a function.
|
|
197
210
|
*/
|
|
@@ -204,6 +217,15 @@ class IllegalArgumentError extends Error {
|
|
|
204
217
|
}
|
|
205
218
|
}
|
|
206
219
|
exports.IllegalArgumentError = IllegalArgumentError;
|
|
220
|
+
/**
|
|
221
|
+
* Checks if the given parameter is a IllegalArgumentError.
|
|
222
|
+
*
|
|
223
|
+
* @param e The parameter to check
|
|
224
|
+
*/
|
|
225
|
+
function isIllegalArgumentError(e) {
|
|
226
|
+
return (0, lang_1.isError)(e) && e.name === 'IllegalArgumentError';
|
|
227
|
+
}
|
|
228
|
+
exports.isIllegalArgumentError = isIllegalArgumentError;
|
|
207
229
|
/**
|
|
208
230
|
* Converts the given parameter to an HttpError.
|
|
209
231
|
*
|
package/errors/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["errors.ts"],"names":[],"mappings":";;;AAAA,kCAA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