This repository has been archived by the owner on May 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
edb709b
commit 25985f5
Showing
4 changed files
with
90 additions
and
48 deletions.
There are no files selected for viewing
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
18 changes: 18 additions & 0 deletions
18
back/src/money/application/exception/ConversationFailedException.ts
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,18 @@ | ||
import { format } from 'date-fns' | ||
|
||
import { Currency } from '@shared/enum/Currency' | ||
|
||
export class ConversationFailedException extends Error { | ||
public constructor( | ||
public readonly from: Currency, | ||
public readonly to: Currency, | ||
public readonly at: Date, | ||
) { | ||
super( | ||
`Currency conversation from ${from} to ${to} failed for ${format( | ||
at, | ||
'YYYY-MM-DD', | ||
)}`, | ||
) | ||
} | ||
} |
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
This file was deleted.
Oops, something went wrong.