MCPcopy Create free account
hub / github.com/Skykai521/ECTranslation / getErrorMessage

Method getErrorMessage

src/Translation.java:66–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64 }
65
66 private String getErrorMessage() {
67 switch (errorCode) {
68 case SUCCESS:
69 return "成功";
70 case QUERY_STRING_TOO_LONG:
71 return "要翻译的文本过长";
72 case CAN_NOT_TRANSLATE:
73 return "无法进行有效的翻译";
74 case INVALID_LANGUAGE:
75 return "不支持的语言类型";
76 case INVALID_KEY:
77 return "无效的key";
78 case NO_RESULT:
79 return "无词典结果";
80 }
81 return "这是什么鬼";
82 }
83
84 private String getPhonetic() {
85 if (basic == null) {

Callers 1

toStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected