v0.1.5
0.1.5 (2025-02-15)
Features
-
implement builder pattern for JsonrpcErrorError (#18) (71e63e5)
Details
Old Approach
JsonrpcErrorError::new( schema_utils::RpcErrorCodes::method_not_found, "Method not found!".to_string(), None, );
New Approach
JsonrpcErrorError::method_not_found()
- overriding the
message
and passingdata
:
JsonrpcErrorError::method_not_found() .with_message("Method is not supported!".to_string()) .with_data(Some(json!({"details": "No implementation found for this method."})))
- overriding the