Skip to content

Commit 75ae767

Browse files
committed
Removed invalid code from NonConvertableResponseException
1 parent 3e50a00 commit 75ae767

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

capabilities-api/src/main/java/ai/wanaku/capabilities/sdk/api/exceptions/NonConvertableResponseException.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,4 @@ public NonConvertableResponseException(
5454
String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
5555
super(message, cause, enableSuppression, writableStackTrace);
5656
}
57-
58-
/**
59-
* Creates a new instance of this exception for the given tool name.
60-
*
61-
* Note that this method is incorrectly named - it should probably be renamed to something like
62-
* {@code forResponseType} or similar. This will throw an exception with a message indicating
63-
* that the response was not convertible to the required type.
64-
*
65-
* @param toolName the name of the tool (or response) that could not be converted to the required type
66-
* @return a new instance of this exception with a message indicating that the response was not convertible
67-
*/
68-
public static NonConvertableResponseException forName(String toolName) {
69-
return new NonConvertableResponseException(String.format("Tool %s not found", toolName));
70-
}
7157
}

0 commit comments

Comments
 (0)