MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / ThrowPluginError

Function ThrowPluginError

src/PluginSegmentation.cpp:240–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240[[noreturn]] void ThrowPluginError(const opencc_segmentation_plugin_v2* descriptor,
241 opencc_error_t* error,
242 const std::string& pluginType,
243 const std::string& fallbackPrefix,
244 const std::string& fallbackMessage) {
245 const std::string message =
246 TakeErrorMessage(descriptor, error, fallbackMessage);
247 throw Exception(fallbackPrefix + " '" + pluginType + "': " + message);
248}
249
250SegmentsPtr BuildSegmentsFromLengths(std::string_view text,
251 const opencc_segment_length_array_t& lengths) {

Callers 1

SegmentMethod · 0.85

Calls 2

TakeErrorMessageFunction · 0.85
ExceptionFunction · 0.70

Tested by

no test coverage detected