diff --git a/workers/loc.api/errors/index.js b/workers/loc.api/errors/index.js index 2f591537..da5d3ef0 100644 --- a/workers/loc.api/errors/index.js +++ b/workers/loc.api/errors/index.js @@ -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, @@ -291,5 +297,6 @@ module.exports = { SyncInfoUpdatingError, AuthTokenGenerationError, AuthTokenTTLSettingError, - CurrencyConversionError + CurrencyConversionError, + CurrencyPairSeparationError }