MCPcopy Create free account
hub / github.com/Super-long/ChubbyGo / Error

Method Error

Connect/common.go:112–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110)
111
112func (err ErrorInParserConfig) Error() string {
113 var ans string
114 switch err {
115 case maxreries_to_small:
116 ans = "Maxreries Less than or equal to 7."
117 break
118 case serveraddress_length_to_small:
119 ans = "Serveraddress length Less than or equal to 2."
120 break
121 case serveraddress_format_error:
122 ans = "Format error in ip address parsing."
123 break
124 case parser_port_error:
125 ans = "Parser port error."
126 break
127 case time_out_entry_error:
128 ans = "Time out entry Too small or too big."
129 break
130 case raft_maxraftstate_not_suitable:
131 ans = "raft maxraftstate not suitable, Less than zero or greater than 2MB."
132 break
133 case parser_snapshot_file_name:
134 ans = "Format error in parsing snapshot file."
135 break
136 case parser_raftstate_file_name:
137 ans = "Format error in parsing raftstate file."
138 break
139 case parser_persistence_strategy:
140 ans = "No such persistence strategy."
141 break
142 case parser_chubbygomap_strategy:
143 ans = "no such chubbygomap strategy."
144 break
145 default:
146 }
147 return ans
148}
149
150/*
151 * @brief: 解析MyPort

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected