Memco

Class MemcoAlreadyExistsError

What the call would create already exists.

Raised for a network name or an external user id that is already taken. Never worth retrying as-is: the same request will be refused again. Either use what already exists, or create it under another name.

try {
await client.users.create('customer-42', { roles: ['reader'] })
} catch (error) {
if (!(error instanceof MemcoAlreadyExistsError)) throw error
await client.users.get('customer-42')
}

Hierarchy (View Summary)

Index
code: Status

The gRPC status code, as @grpc/grpc-js's numeric status enum.

codeName: string

The status code's name, such as UNAUTHENTICATED.

detail: string

The service's own description of the failure, without the code prefix.

debugErrorString: string | undefined

gRPC's internal diagnostic string, when the call carried one.

On this page