USER_REJECTED
What USER_REJECTED means, why UserRejectedError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.
UserRejectedErrorNot retryable
@ensforge/sdk
What happened
The user rejected the request.
What to show users
| Title | Message | Action |
|---|---|---|
| Request cancelled | You cancelled the request in your wallet. |
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
| Action | When |
|---|---|
approval.setDelegate | when the user rejects the request. |
approval.setOperator | when the user rejects the request. |
approval.setToken | when the user rejects the request. |
dns.claim | when the user rejects the request. |
dns.setRecords | when the user rejects the request. |
migration.migrate | when the user rejects the request. |
name.reclaim | when the user rejects the request. |
name.setManager | when the user rejects the request. |
name.setTtl | when the user rejects the request. |
name.transfer | when the user rejects the request. |
permission.setRecordAccess | when the user rejects the request. |
plan.send | when the user rejects the request. |
primaryName.set | when the user rejects the request. |
primaryName.signClaim | when the user rejects the request. |
record.set | when the user rejects the request. |
registration.commit | when the user rejects the request. |
registration.register | when the user rejects the request. |
registration.renew | when the user rejects the request. |
registry.attach | when the user rejects the request. |
registry.deploy | when the user rejects the request. |
registry.setUri | when the user rejects the request. |
registry.upgrade | when the user rejects the request. |
resolver.create | when the user rejects the request. |
resolver.link | when the user rejects the request. |
resolver.set | when the user rejects the request. |
resolver.upgrade | when the user rejects the request. |
role.grant | when the user rejects the request. |
role.revoke | when the user rejects the request. |
subname.create | when the user rejects the request. |
subname.remove | when the user rejects the request. |
subname.update | when the user rejects the request. |
wrapper.setChildFuses | when the user rejects the request. |
wrapper.setFuses | when the user rejects the request. |
wrapper.unwrap | when the user rejects the request. |
wrapper.wrap | when the user rejects the request. |
hca.authorizeSession | when the owner declines. |
Any write can fail with UserRejectedError: it is part of Errors.WriteError.
Catch it
Errors.hasCode("USER_REJECTED") narrows to this error. See Handle errors.
Was this page helpful?