Skip to content

Commit ba1a575

Browse files
committed
Simplify Exception
1 parent 2ed94b8 commit ba1a575

File tree

1 file changed

+3
-22
lines changed

1 file changed

+3
-22
lines changed
Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,7 @@
11
package com.sap.ai.sdk.orchestration;
22

3-
import javax.annotation.Nonnull;
3+
import lombok.experimental.StandardException;
44

55
/** Exception thrown by the {@link OrchestrationClient} in case of an error. */
6-
public class OrchestrationClientException extends RuntimeException {
7-
8-
/**
9-
* Constructor.
10-
*
11-
* @param msg the error message
12-
*/
13-
public OrchestrationClientException(@Nonnull final String msg) {
14-
super(msg);
15-
}
16-
17-
/**
18-
* Constructor.
19-
*
20-
* @param msg the error message
21-
* @param cause the cause of the error
22-
*/
23-
public OrchestrationClientException(@Nonnull final String msg, @Nonnull final Throwable cause) {
24-
super(msg, cause);
25-
}
26-
}
6+
@StandardException
7+
public class OrchestrationClientException extends RuntimeException {}

0 commit comments

Comments
 (0)