stack_wallet/lib/exceptions/exchange/exchange_exception.dart

14 lines
323 B
Dart
Raw Normal View History

2023-02-04 17:15:42 +00:00
import 'package:stackwallet/exceptions/sw_exception.dart';
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;
}
}