You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add a non-static string variant for CustomError and InvalidParams
This enables uses cases that require error message built with runtime data such as
```
RPCError::InvalidParamsString(format!("Method {method_name} requires {num_required} params, got {num_actual}"))
```
```
// Forward error message
RPCError::CustomErrorString(1, err.what().to_string())
```
0 commit comments