model/errors/telnyx_warning_factory library

Factory for creating TelnyxWarning instances from the SDK warning registry.

Creates a fully-populated TelnyxWarning from the registered warning definition. Throws ArgumentError when code is not in the registry.

Usage:

final warning = createTelnyxWarning(TelnyxWarningCodes.highRtt);

Functions

createTelnyxWarning(int code, {String? message}) → TelnyxWarning
Creates a TelnyxWarning from a registered warning code.