wallet/Safari Shared/Inpage Provider/error.js
2024-01-23 14:02:43 +03:00

19 lines
353 B
JavaScript

// ∅ 2024 lil org
// Rewrite of error.js from trust-web3-provider.
"use strict";
class ProviderRpcError extends Error {
constructor(code, message) {
super();
this.code = code;
this.message = message;
}
toString() {
return `${this.message} (${this.code})`;
}
}
module.exports = ProviderRpcError;