Documentation for agents: an index at /llms.txt, every docs page in one file at /llms-full.txt, and Markdown for any docs page by adding .md to its URL.

Skip to Content
ensforge

INVALID_ROLES

What INVALID_ROLES means, why InvalidInputError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.

InvalidInputErrorNot retryable
@ensforge/sdk

What happened

undefined is not a valid role bitmap.

What to show users

TitleMessageAction
Invalid permissionsThe selected permissions are not valid.

Retry safety

Retrying the same call fails the same way until the cause is fixed (retryable: false).

Actions that throw it

ActionWhen
registry.deployfor invalid input.
resolver.createfor invalid input, or a salt whose resolver already exists.
role.grantfor invalid input or targets.
role.revokefor invalid input or targets.
subname.createfor invalid input.

Catch it

Errors.hasCode("INVALID_ROLES") narrows to this error. See Handle errors.

Was this page helpful?