How to use the @tanker/errors.GroupTooBig function in @tanker/errors

To help you get started, we’ve selected a few @tanker/errors 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 TankerHQ / sdk-js / packages / core / src / Groups / ManagerHelper.js View on Github external
export function assertPublicIdentities(publicIdentities: Array) {
  if (publicIdentities.length === 0)
    throw new InvalidArgument('publicIdentities', 'non empty Array', '[]');
  if (publicIdentities.length > MAX_GROUP_SIZE)
    throw new GroupTooBig(`A group cannot have more than ${MAX_GROUP_SIZE} members`);
}