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
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2024-05-23 00:37:06 +00:00
|
|
|
import '../sw_exception.dart';
|
2023-02-04 17:15:42 +00:00
|
|
|
|
2023-03-06 19:59:30 +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;
|
|
|
|
}
|
|
|
|
}
|