{"modulePath":"github.com/stackup-wallet/stackup-bundler","version":"v0.6.47","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Variables\n\n```go\nvar (\n\tREJECTED_BY_EP_OR_ACCOUNT  = -32500\n\tREJECTED_BY_PAYMASTER      = -32501\n\tBANNED_OPCODE              = -32502\n\tSHORT_DEADLINE             = -32503\n\tBANNED_OR_THROTTLED_ENTITY = -32504\n\tINVALID_ENTITY_STAKE       = -32505\n\tINVALID_AGGREGATOR         = -32506\n\tINVALID_SIGNATURE          = -32507\n\tINVALID_FIELDS             = -32602\n\n\tEXECUTION_REVERTED = -32521\n)\n```\n\n## Functions\n\n```go\nfunc DecodePanic(data []byte) (string, error)\n```\n\n```go\nfunc DecodeRevert(data []byte) (string, error)\n```\n\n```go\nfunc NewRPCError(code int, message string, data any) error\n```\nNew returns a new custom RPCError.\n\n```go\nfunc ParseHexToRpcDataError(hex string) (rpc.DataError, error)\n```\nParseHexToRpcDataError is a utility function that converts a hex string into an interface that's compatible with rpc.DataError. This is useful for parsing output from a debug\\_traceCall that resulted in a transaction revert.\n\n## Types\n\n```go\ntype RPCError struct {\n\t// contains filtered or unexported fields\n}\n```\nRPCError is a custom error that fits the JSON-RPC error spec.\n\n```go\nfunc (e *RPCError) Code() int\n```\nCode returns the code field of the JSON-RPC error object.\n\n```go\nfunc (e *RPCError) Data() any\n```\nData returns the data field of the JSON-RPC error object.\n\n```go\nfunc (e *RPCError) Error() string\n```\nCode returns the message field of the JSON-RPC error object.\n\n","path":"github.com/stackup-wallet/stackup-bundler/pkg/errors","name":"errors","synopsis":"","isRedistributable":true}
