aboutsummaryrefslogtreecommitdiff
path: root/src/types/pending.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-07-22 14:22:03 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-07-22 14:22:03 +0530
commite60563fb540c04d9ba751fea69c1fc0f1de598b5 (patch)
tree45f7c86b66dc150d413f9855efaa6341e4a44624 /src/types/pending.ts
parentf4a8702b3cf93f9edf96d1d1c8cb88baa309e301 (diff)
downloadwallet-core-e60563fb540c04d9ba751fea69c1fc0f1de598b5.tar.xz
consistent error handling for HTTP request (and some other things)
Diffstat (limited to 'src/types/pending.ts')
-rw-r--r--src/types/pending.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/types/pending.ts b/src/types/pending.ts
index f949b7c16..8a1e84362 100644
--- a/src/types/pending.ts
+++ b/src/types/pending.ts
@@ -21,7 +21,7 @@
/**
* Imports.
*/
-import { OperationError, WalletBalance } from "./walletTypes";
+import { OperationErrorDetails, WalletBalance } from "./walletTypes";
import { WithdrawalSource, RetryInfo, ReserveRecordStatus } from "./dbTypes";
import { Timestamp, Duration } from "../util/time";
import { ReserveType } from "./history";
@@ -68,7 +68,7 @@ export interface PendingExchangeUpdateOperation {
stage: ExchangeUpdateOperationStage;
reason: string;
exchangeBaseUrl: string;
- lastError: OperationError | undefined;
+ lastError: OperationErrorDetails | undefined;
}
/**
@@ -112,7 +112,7 @@ export interface PendingReserveOperation {
*/
export interface PendingRefreshOperation {
type: PendingOperationType.Refresh;
- lastError?: OperationError;
+ lastError?: OperationErrorDetails;
refreshGroupId: string;
finishedPerCoin: boolean[];
retryInfo: RetryInfo;
@@ -127,7 +127,7 @@ export interface PendingProposalDownloadOperation {
proposalTimestamp: Timestamp;
proposalId: string;
orderId: string;
- lastError?: OperationError;
+ lastError?: OperationErrorDetails;
retryInfo: RetryInfo;
}
@@ -172,7 +172,7 @@ export interface PendingPayOperation {
proposalId: string;
isReplay: boolean;
retryInfo: RetryInfo;
- lastError: OperationError | undefined;
+ lastError: OperationErrorDetails | undefined;
}
/**
@@ -183,14 +183,14 @@ export interface PendingRefundQueryOperation {
type: PendingOperationType.RefundQuery;
proposalId: string;
retryInfo: RetryInfo;
- lastError: OperationError | undefined;
+ lastError: OperationErrorDetails | undefined;
}
export interface PendingRecoupOperation {
type: PendingOperationType.Recoup;
recoupGroupId: string;
retryInfo: RetryInfo;
- lastError: OperationError | undefined;
+ lastError: OperationErrorDetails | undefined;
}
/**
@@ -199,7 +199,7 @@ export interface PendingRecoupOperation {
export interface PendingWithdrawOperation {
type: PendingOperationType.Withdraw;
source: WithdrawalSource;
- lastError: OperationError | undefined;
+ lastError: OperationErrorDetails | undefined;
withdrawalGroupId: string;
numCoinsWithdrawn: number;
numCoinsTotal: number;