@blossm/errors
Advanced tools
Comparing version 0.0.30 to 0.0.31
@@ -7,2 +7,3 @@ const { | ||
InvalidArgumentError, | ||
ConflictError, | ||
InvalidCredentialsError, | ||
@@ -43,2 +44,6 @@ ForbiddenError, | ||
}; | ||
const conflict = { | ||
message: (message, { cause, info } = {}) => | ||
new ConflictError({ cause, info, toJSON }, message), | ||
}; | ||
const preconditionFailed = { | ||
@@ -73,2 +78,3 @@ message: (message, { cause, info } = {}) => | ||
invalidArgument, | ||
conflict, | ||
forbidden, | ||
@@ -75,0 +81,0 @@ unauthorized, |
{ | ||
"name": "@blossm/errors", | ||
"version": "0.0.30", | ||
"version": "0.0.31", | ||
"description": "A library of errors that can be thrown by the network.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
10958
14
388