TelnyxError constructor

TelnyxError({
  1. required int code,
  2. required String name,
  3. required String message,
  4. required String description,
  5. required List<String> causes,
  6. required List<String> solutions,
  7. Object? originalError,
  8. required bool fatal,
  9. String? callId,
  10. String? sessionId,
  11. String? timestamp,
  12. Map<String, dynamic>? context,
})

Creates a structured Telnyx error.

Implementation

TelnyxError({
  required this.code,
  required this.name,
  required this.message,
  required this.description,
  required this.causes,
  required this.solutions,
  this.originalError,
  required this.fatal,
  this.callId,
  this.sessionId,
  this.timestamp,
  this.context,
});