Skip to content

Commit e00eb48

Browse files
authored
Apply suggestions from code review
1 parent d160e3e commit e00eb48

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

core/src/main/java/com/sap/ai/sdk/core/commons/ClientError.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
import javax.annotation.Nonnull;
44

5-
/** Generic class that contains a JSON error response. */
5+
/**
6+
* Generic class that contains a JSON error response.
7+
* @since 1.1.0
8+
*/
69
public interface ClientError {
710
/**
811
* Get the error message.

core/src/main/java/com/sap/ai/sdk/core/commons/ClientException.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
import lombok.experimental.StandardException;
44

5-
/** Generic exception for errors occurring when using AI SDK clients. */
5+
/**
6+
* Generic exception for errors occurring when using AI SDK clients.
7+
* @since 1.1.0
8+
*/
69
@StandardException
710
public class ClientException extends RuntimeException {}

core/src/main/java/com/sap/ai/sdk/core/commons/ClientResponseHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
import org.apache.hc.core5.http.io.entity.EntityUtils;
2121

2222
/**
23-
* Parse incoming JSON responses and handles any errors
23+
* Parse incoming JSON responses and handles any errors. For internal use only.
2424
*
2525
* @param <T> The type of the response
2626
* @param <E> The type of the exception to throw
27+
* @since 1.1.0
2728
*/
2829
@Slf4j
2930
@RequiredArgsConstructor

0 commit comments

Comments
 (0)