validationFailed static method
Validation failure.
fieldPath (e.g. "STTOptions.sampleRate") is stored Dart-local on
SDKException.fieldPath — SDKError.context (the former wire carrier)
was deleted outright (idl/errors.proto).
Implementation
static SDKException validationFailed(
String reason, {
required String fieldPath,
}) => _build(
code: pb_enum.ErrorCode.ERROR_CODE_INVALID_ARGUMENT,
category: pb_enum.ErrorCategory.ERROR_CATEGORY_VALIDATION,
message: reason,
fieldPath: fieldPath,
);