not-node 6.5.24 → 6.5.25
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/package.json +1 -1
- package/src/exceptions/action.js +12 -0
- package/src/exceptions/form.js +0 -2
package/package.json
CHANGED
package/src/exceptions/action.js
CHANGED
|
@@ -32,6 +32,18 @@ class OwnageExceptionIdentityUserIdIsNotDefined extends notRequestError {
|
|
|
32
32
|
module.exports.OwnageExceptionIdentityUserIdIsNotDefined =
|
|
33
33
|
OwnageExceptionIdentityUserIdIsNotDefined;
|
|
34
34
|
|
|
35
|
+
class OwnageExceptionIdentityUserIdAndSessionIsNotDefined extends notRequestError {
|
|
36
|
+
constructor(actionName, identity) {
|
|
37
|
+
super(
|
|
38
|
+
"User identity `uid` and `sid` is not defined, ownage couldnt be determined",
|
|
39
|
+
{ code: 505, params: { actionName, identity } },
|
|
40
|
+
null
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
module.exports.OwnageExceptionIdentityUserIdAndSessionIsNotDefined =
|
|
45
|
+
OwnageExceptionIdentityUserIdAndSessionIsNotDefined;
|
|
46
|
+
|
|
35
47
|
class LogicDeleteActionException extends notRequestError {
|
|
36
48
|
constructor(params, cause) {
|
|
37
49
|
super("Logic Delete Action exception", { code: 505, params }, cause);
|
package/src/exceptions/form.js
CHANGED
|
@@ -35,8 +35,6 @@ class FormExceptionTooManyRequests extends HttpExceptionTooManyRequests {
|
|
|
35
35
|
|
|
36
36
|
module.exports.FormExceptionTooManyRequests = FormExceptionTooManyRequests;
|
|
37
37
|
|
|
38
|
-
Error("no prepared identity or query");
|
|
39
|
-
|
|
40
38
|
class FormExceptionIdentityOrQueryIsUndefined extends notRequestError {
|
|
41
39
|
constructor(formName) {
|
|
42
40
|
super("not-node:form_exception_identity_or_query_is_undefined", {
|