stack_wallet/lib/exceptions/exchange/exchange_exception.dart

24 lines
529 B
Dart
Raw Normal View History

2023-05-26 21:21:16 +00:00
/*
* This file is part of Stack Wallet.
*
* Copyright (c) 2023 Cypher Stack
* All Rights Reserved.
* The code is distributed under GPLv3 license, see LICENSE file for details.
* Generated by Cypher Stack on 2023-05-26
*
*/
import '../sw_exception.dart';
2023-02-04 17:15:42 +00:00
enum ExchangeExceptionType { generic, serializeResponseError, orderNotFound }
2023-02-04 17:15:42 +00:00
class ExchangeException extends SWException {
ExchangeExceptionType type;
ExchangeException(super.message, this.type);
@override
String toString() {
return message;
}
}