How to use the @mojaloop/central-services-shared.NotFoundError function in @mojaloop/central-services-shared

To help you get started, we’ve selected a few @mojaloop/central-services-shared examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mojaloop / central-ledger / src / errors / index.js View on Github external
LedgerAccountTypeNotFoundError,
  MissingFulfilmentError,
  ParticipantNotFoundError,
  RecordExistsError,
  TransferNotConditionalError,
  TransferNotFoundError,
  UnauthorizedError,
  UnexecutedTransferError,
  UnmetConditionError,
  UnpreparedTransferError,
  ValidationError,
  EndpointReservedForHubAccountsError,
  HubAccountTypeError,
  ParticipantAccountCreateError,
  HubAccountExistsError,
  NotFoundError: SharedErrors.NotFoundError
}
github mojaloop / central-ledger / src / errors / missing-fulfilment.js View on Github external
'use strict'

const NotFoundError = require('@mojaloop/central-services-shared').NotFoundError

class MissingFulfilmentError extends NotFoundError {
  constructor (message = 'This transfer has not yet been fulfilled') {
    super(message)
  }
}

module.exports = MissingFulfilmentError