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