Skip to content

Commit c004ae0

Browse files
author
Milder Hernandez Cagua
committed
Return Mono.error instead of runtime exception
1 parent ae91765 commit c004ae0

File tree

1 file changed

+1
-1
lines changed
  • agents/semantickernel-agents-core/src/main/java/com/microsoft/semantickernel/agents/chatcompletion

1 file changed

+1
-1
lines changed

agents/semantickernel-agents-core/src/main/java/com/microsoft/semantickernel/agents/chatcompletion/ChatCompletionAgent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ private Mono<List<ChatMessageContent<?>>> internalInvokeAsync(
157157
);
158158

159159
} catch (ServiceNotFoundException e) {
160-
throw new RuntimeException(e);
160+
return Mono.error(e);
161161
}
162162
}
163163

0 commit comments

Comments
 (0)