UNPKG

@etherspot/remote-signer

Version:

Etherspot Permissioned Signer SDK - signs the UserOp with SessionKey and sends it to the Bundler

27 lines (25 loc) 577 B
import { entryPointErrorMsg, errorMsg } from "./chunk-D7FNURGP.mjs"; // src/sdk/error-handler/errorHandler.service.ts var ErrorHandler = class extends Error { constructor(error, code) { super(error); this.error = error; this.code = code; this.rawError = null; this.rawError = error; this.code = code; if (code) { this.message = errorMsg[code.toString()]; if (entryPointErrorMsg[error]) { this.message = entryPointErrorMsg[error]; } } } }; export { ErrorHandler }; //# sourceMappingURL=chunk-FVCQUX3O.mjs.map