How to use the @mojaloop/central-services-error-handling.InvalidBodyError function in @mojaloop/central-services-error-handling

To help you get started, we’ve selected a few @mojaloop/central-services-error-handling 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 / api / messages / validator.js View on Github external
]).then(() => {
      if (errors.length > 0) {
        reject(new InvalidBodyError(...errors))
      } else {
        resolve(request)
      }
    })
  })