@venncity/errors
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.4.1](https://github.com/venn-city/npm-shelf/compare/@venncity/errors@1.4.0...@venncity/errors@1.4.1) (2019-10-24) | ||
**Note:** Version bump only for package @venncity/errors | ||
# [1.4.0](https://github.com/venn-city/npm-shelf/compare/@venncity/errors@1.3.0...@venncity/errors@1.4.0) (2019-10-22) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@venncity/errors", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"author": "Venn Engineering", | ||
@@ -29,3 +29,3 @@ "main": "src/index.js", | ||
}, | ||
"gitHead": "a34d45d4f2b77c730b9e98c02bceaba155aa2386" | ||
"gitHead": "b0a79280047ee179906117673f0195764a78009c" | ||
} |
@@ -32,4 +32,4 @@ const { VError } = require('verror'); | ||
class ThrottlingError extends VennError { | ||
constructor({ cause, message, clientVisible }) { | ||
super({ cause, message, clientVisible, statusCode: 429, name: VENN_THROTTLING_ERROR }); | ||
constructor({ cause, message, clientVisible, logLevel }) { | ||
super({ cause, message, clientVisible, statusCode: 429, name: VENN_THROTTLING_ERROR, logLevel }); | ||
} | ||
@@ -46,4 +46,4 @@ } | ||
class ServerDataValidationError extends DataValidationError { | ||
constructor({ cause, message, clientVisible = false }) { | ||
super({ cause, message, clientVisible, statusCode: 500, name: VENN_SERVER_DATA_VALIDATION_ERROR }); | ||
constructor({ cause, message, clientVisible = false, logLevel }) { | ||
super({ cause, message, clientVisible, statusCode: 500, name: VENN_SERVER_DATA_VALIDATION_ERROR, logLevel }); | ||
} | ||
@@ -59,3 +59,3 @@ } | ||
class ForbiddenError extends VennError { | ||
constructor({ cause, message }) { | ||
constructor({ cause, message, logLevel }) { | ||
super({ | ||
@@ -65,3 +65,4 @@ name: VENN_FORBIDDEN_ERROR, | ||
message, | ||
statusCode: 403 | ||
statusCode: 403, | ||
logLevel | ||
}); | ||
@@ -68,0 +69,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11895
244