Skip to content

v0.1.5

Compare
Choose a tag to compare
@hashemix hashemix released this 15 Feb 00:14
17a9229

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 passing data:
    JsonrpcErrorError::method_not_found()
            .with_message("Method is not supported!".to_string())
            .with_data(Some(json!({"details": "No implementation found for this method."})))

Bug Fixes

  • Standardize error types to conform to JSON-RPC (#20) (47fd818)