UNPKG

@bitloops/bl-boilerplate-core

Version:

TypeScript boilerplate code for Bitloops Language generated projects

20 lines (19 loc) 1.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CurrencyCodeDoesNotExistError = exports.CurrencyStandardDoesNotExistError = void 0; const DomainError_1 = require("../../../DomainError"); const common_1 = require("../../common"); class CurrencyStandardDoesNotExistError extends DomainError_1.DomainError { constructor(standard) { super(`standard ${standard} does not exist`, CurrencyStandardDoesNotExistError.errorId); } } exports.CurrencyStandardDoesNotExistError = CurrencyStandardDoesNotExistError; CurrencyStandardDoesNotExistError.errorId = common_1.StandardErrorUtils.getBLStandardValueError('CURRENCY_STANDARD_DOES_NOT_EXIST'); class CurrencyCodeDoesNotExistError extends DomainError_1.DomainError { constructor(currencyCode) { super(`Currency code ${currencyCode} does not exist`, CurrencyCodeDoesNotExistError.errorId); } } exports.CurrencyCodeDoesNotExistError = CurrencyCodeDoesNotExistError; CurrencyCodeDoesNotExistError.errorId = common_1.StandardErrorUtils.getBLStandardValueError('CURRENCY_DOES_NOT_EXIST');