From e81bba2357248de9eabe0ef23276e62f8260b650 Mon Sep 17 00:00:00 2001 From: julian Date: Tue, 30 May 2023 10:41:27 -0600 Subject: [PATCH] fix: exception implementations --- lib/exceptions/sw_exception.dart | 2 +- lib/services/ethereum/ethereum_api.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/exceptions/sw_exception.dart b/lib/exceptions/sw_exception.dart index 34ab664f2..0296da10a 100644 --- a/lib/exceptions/sw_exception.dart +++ b/lib/exceptions/sw_exception.dart @@ -1,7 +1,7 @@ // generic stack wallet exception which all other custom exceptions should // extend from -class SWException with Exception { +class SWException implements Exception { SWException(this.message); final String message; diff --git a/lib/services/ethereum/ethereum_api.dart b/lib/services/ethereum/ethereum_api.dart index fcc5de192..d9c34773d 100644 --- a/lib/services/ethereum/ethereum_api.dart +++ b/lib/services/ethereum/ethereum_api.dart @@ -15,7 +15,7 @@ import 'package:stackwallet/utilities/extensions/extensions.dart'; import 'package:stackwallet/utilities/logger.dart'; import 'package:tuple/tuple.dart'; -class EthApiException with Exception { +class EthApiException implements Exception { EthApiException(this.message); final String message;