Skip to content

Commit 753bd87

Browse files
authored
fix: implemented Error trait for JsonrpcErrorError (#22)
1 parent 17a9229 commit 753bd87

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

src/generated_schema/2024_11_05/mcp_schema.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
///
77
/// Generated from : <https://github.com/modelcontextprotocol/specification.git>
88
/// Hash : 63e1dbb75456b359b9ed8b27d21f4ac68cbb753e
9-
/// Generated at : 2025-02-14 08:18:40
9+
/// Generated at : 2025-02-17 17:12:03
1010
/// ----------------------------------------------------------------------------
1111
///
1212
/// MCP Protocol Version

src/generated_schema/2024_11_05/schema_utils.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,6 +1385,11 @@ impl JsonrpcErrorError {
13851385
self
13861386
}
13871387
}
1388+
impl std::error::Error for JsonrpcErrorError {
1389+
fn description(&self) -> &str {
1390+
&self.message
1391+
}
1392+
}
13881393
impl Display for JsonrpcErrorError {
13891394
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
13901395
write!(

src/generated_schema/draft/mcp_schema.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
///
77
/// Generated from : <https://github.com/modelcontextprotocol/specification.git>
88
/// Hash : 63e1dbb75456b359b9ed8b27d21f4ac68cbb753e
9-
/// Generated at : 2025-02-14 08:18:40
9+
/// Generated at : 2025-02-17 17:12:04
1010
/// ----------------------------------------------------------------------------
1111
///
1212
/// MCP Protocol Version

src/generated_schema/draft/schema_utils.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,6 +1379,11 @@ impl JsonrpcErrorError {
13791379
self
13801380
}
13811381
}
1382+
impl std::error::Error for JsonrpcErrorError {
1383+
fn description(&self) -> &str {
1384+
&self.message
1385+
}
1386+
}
13821387
impl Display for JsonrpcErrorError {
13831388
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
13841389
write!(

0 commit comments

Comments
 (0)