@etherspot/modular-sdk
Version:
Etherspot Modular SDK - build with ERC-7579 smart accounts modules
15 lines • 455 B
JavaScript
import { Exception } from './exception.js';
export class ValidationException extends Exception {
static throw(property, constraints) {
const validationError = {
property,
constraints,
};
throw new ValidationException([validationError]);
}
constructor(errors) {
super(JSON.stringify(errors, null, 2));
this.errors = errors;
}
}
//# sourceMappingURL=validation.exception.js.map