throwError method
Implementation
void throwError(String funcName, int code) {
if (code != ailia_voice_dart.AILIA_STATUS_SUCCESS) {
ffi.Pointer<Utf8> p =
ailiaVoice.ailiaVoiceGetErrorDetail(ppAilia!.value).cast<Utf8>();
String errorDetail = p.toDartString();
throw Exception("$funcName failed $code \n detail $errorDetail");
}
}