Skip to content

Commit

Permalink
Add CurrencyPairSeparationError class
Browse files Browse the repository at this point in the history
  • Loading branch information
ZIMkaRU committed May 27, 2024
1 parent 4ee6760 commit 604c341
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion workers/loc.api/errors/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ class CurrencyConversionError extends BaseError {
}
}

class CurrencyPairSeparationError extends BaseError {
constructor (data, message = 'ERR_CURRENCY_PAIR_HAS_NOT_BEEN_SEPARATED_CORRECTLY') {
super({ data, message })
}
}

module.exports = {
BaseError,
CollSyncPermissionError,
Expand Down Expand Up @@ -291,5 +297,6 @@ module.exports = {
SyncInfoUpdatingError,
AuthTokenGenerationError,
AuthTokenTTLSettingError,
CurrencyConversionError
CurrencyConversionError,
CurrencyPairSeparationError
}

0 comments on commit 604c341

Please sign in to comment.