forked from LykkeCity/MT
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #536 from LykkeBusiness/LT-5364
LT-5364 - ExternalOrderWasNotExecuted as warning
- Loading branch information
Showing
2 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/MarginTrading.Backend.Core/Exceptions/ExternalOrderWasNotExecuted.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) 2019 Lykke Corp. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System; | ||
using MarginTrading.Backend.Contracts.ExchangeConnector; | ||
|
||
namespace MarginTrading.Backend.Core.Exceptions | ||
{ | ||
public class ExternalOrderWasNotExecuted : Exception | ||
{ | ||
public ExternalOrderWasNotExecuted(ExecutionReport executionResult) : base($"External order was not executed. Status: {executionResult.ExecutionStatus}. Failure: {executionResult.FailureType}") | ||
{ | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters