import {
  Exception
} from "./chunk-6OZFJI4F.mjs";

// src/sdk/common/exceptions/validation.exception.ts
var ValidationException = class _ValidationException extends Exception {
  constructor(errors) {
    super(JSON.stringify(errors, null, 2));
    this.errors = errors;
  }
  static throw(property, constraints) {
    const validationError = {
      property,
      constraints
    };
    throw new _ValidationException([validationError]);
  }
};

export {
  ValidationException
};
//# sourceMappingURL=chunk-SV5CLU6J.mjs.map