@strapi/utils 4.16.1 → 4.17.0

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/dist/index.mjs CHANGED
@@ -284,7 +284,9 @@ const formatYupErrors = (yupError) => ({
284
284
  message: yupError.message
285
285
  });
286
286
  class ApplicationError extends Error {
287
+ name;
287
288
  details;
289
+ message;
288
290
  constructor(message = "An application error occured", details = {}) {
289
291
  super();
290
292
  this.name = "ApplicationError";
@@ -293,7 +295,7 @@ class ApplicationError extends Error {
293
295
  }
294
296
  }
295
297
  class ValidationError extends ApplicationError {
296
- constructor(message = "Validation error", details) {
298
+ constructor(message, details) {
297
299
  super(message, details);
298
300
  this.name = "ValidationError";
299
301
  }