mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-23 17:04:25 +01:00
Handle transition error on TimedOut (#765)
* Remove internal error * Handle transition error on TimedOut
This commit is contained in:
@@ -855,88 +855,6 @@ abstract class PaymentError_InvalidPreimage extends PaymentError {
|
||||
const PaymentError_InvalidPreimage._() : super._();
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$PaymentError_LwkErrorImplCopyWith<$Res> {
|
||||
factory _$$PaymentError_LwkErrorImplCopyWith(
|
||||
_$PaymentError_LwkErrorImpl value,
|
||||
$Res Function(_$PaymentError_LwkErrorImpl) then,
|
||||
) = __$$PaymentError_LwkErrorImplCopyWithImpl<$Res>;
|
||||
@useResult
|
||||
$Res call({String err});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$PaymentError_LwkErrorImplCopyWithImpl<$Res>
|
||||
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_LwkErrorImpl>
|
||||
implements _$$PaymentError_LwkErrorImplCopyWith<$Res> {
|
||||
__$$PaymentError_LwkErrorImplCopyWithImpl(
|
||||
_$PaymentError_LwkErrorImpl _value,
|
||||
$Res Function(_$PaymentError_LwkErrorImpl) _then,
|
||||
) : super(_value, _then);
|
||||
|
||||
/// Create a copy of PaymentError
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({Object? err = null}) {
|
||||
return _then(
|
||||
_$PaymentError_LwkErrorImpl(
|
||||
err:
|
||||
null == err
|
||||
? _value.err
|
||||
: err // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$PaymentError_LwkErrorImpl extends PaymentError_LwkError {
|
||||
const _$PaymentError_LwkErrorImpl({required this.err}) : super._();
|
||||
|
||||
@override
|
||||
final String err;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'PaymentError.lwkError(err: $err)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$PaymentError_LwkErrorImpl &&
|
||||
(identical(other.err, err) || other.err == err));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, err);
|
||||
|
||||
/// Create a copy of PaymentError
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$PaymentError_LwkErrorImplCopyWith<_$PaymentError_LwkErrorImpl> get copyWith =>
|
||||
__$$PaymentError_LwkErrorImplCopyWithImpl<_$PaymentError_LwkErrorImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class PaymentError_LwkError extends PaymentError {
|
||||
const factory PaymentError_LwkError({required final String err}) = _$PaymentError_LwkErrorImpl;
|
||||
const PaymentError_LwkError._() : super._();
|
||||
|
||||
String get err;
|
||||
|
||||
/// Create a copy of PaymentError
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$PaymentError_LwkErrorImplCopyWith<_$PaymentError_LwkErrorImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$PaymentError_PairsNotFoundImplCopyWith<$Res> {
|
||||
factory _$$PaymentError_PairsNotFoundImplCopyWith(
|
||||
|
||||
Reference in New Issue
Block a user