@etherspot/remote-signer
Version:
Etherspot Permissioned Signer SDK - signs the UserOp with SessionKey and sends it to the Bundler
23 lines (21 loc) • 528 B
JavaScript
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