Skip to content

Commit ad8920a

Browse files
author
kevin
committed
refactor(errors): remove hardcoded URLs and fix line length
1 parent 6d822fe commit ad8920a

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

src/main/java/com/alibaba/dashscope/common/InternalErrorCode.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ public enum InternalErrorCode {
1313
new String[] {},
1414
"",
1515
"Set the DASHSCOPE_API_KEY environment variable or pass a valid api_key to the client."
16-
+ " You can obtain an API key at"
17-
+ " https://dashscope.console.aliyun.com/apiKey."),
16+
+ " You can obtain an API key through the DashScope console."),
1817
SDK_AGENTIC_RL_FUNCTION_REGISTRATION_FAILED(
1918
"sdk.agentic_rl.FunctionRegistrationFailed",
2019
PublicErrorCode.INTERNAL_ERROR,
@@ -251,8 +250,7 @@ public enum InternalErrorCode {
251250
new String[] {},
252251
"",
253252
"An unexpected AgenticRL error occurred. Check the error message and logs for details. If the"
254-
+ " issue persists, submit a bug report at"
255-
+ " https://github.com/dashscope/dashscope-sdk-java/issues."),
253+
+ " issue persists, submit a bug report to the DashScope SDK team."),
256254
SDK_AGENTIC_RL_RUNTIME_ERROR_WITH_CODE(
257255
"sdk.agentic_rl.RuntimeErrorWithCode",
258256
PublicErrorCode.INTERNAL_ERROR,
@@ -261,8 +259,7 @@ public enum InternalErrorCode {
261259
new String[] {},
262260
"",
263261
"An unexpected runtime error occurred. Check the error message and traceback for details. If"
264-
+ " the issue persists, submit a bug report at"
265-
+ " https://github.com/dashscope/dashscope-sdk-java/issues."),
262+
+ " the issue persists, submit a bug report to the DashScope SDK team."),
266263
SDK_AGENTIC_RL_VALUE_ERROR_WITH_CODE(
267264
"sdk.agentic_rl.ValueErrorWithCode",
268265
PublicErrorCode.INVALID_REQUEST,
@@ -297,8 +294,7 @@ public enum InternalErrorCode {
297294
true,
298295
new String[] {},
299296
"",
300-
"Retry the streaming request. If the error persists, report it at "
301-
+ "https://github.com/dashscope/dashscope-sdk-java/issues."),
297+
"Retry the streaming request. If the error persists, report it to the DashScope SDK team."),
302298
SDK_AGENTSTUDIO_STREAM_CLOSED_ERROR(
303299
"sdk.agentstudio.StreamClosedError",
304300
PublicErrorCode.INVALID_REQUEST,

0 commit comments

Comments
 (0)