validationFailed static method
Validation failure.
fieldPath (e.g. "STTOptions.sampleRate") is stored on the typed
error.context.fieldPath proto field, matching the generated validation
shape across Swift, Kotlin, Dart, and TypeScript.
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,
);