// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.11.1.

// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import

import '../frb_generated.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
import 'package:freezed_annotation/freezed_annotation.dart' hide protected;
part 'error.freezed.dart';

// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `fmt`, `fmt`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`

@freezed
sealed class Error with _$Error implements FrbException {
  const Error._();

  /// Error del protocolo Cashu (cdk)
  const factory Error.cdk(String field0) = Error_Cdk;

  /// Error de base de datos (SQLite)
  const factory Error.database(String field0) = Error_Database;

  /// Input inválido del usuario
  const factory Error.invalidInput() = Error_InvalidInput;

  /// Error de red (HTTP, conexión)
  const factory Error.network(String field0) = Error_Network;

  /// Error de UR (QR multiframe)
  const factory Error.ur(String field0) = Error_Ur;
}
