Class MemcoUserAlreadyAssignedNetworkError
Hierarchy (View Summary)
- MemcoPreconditionFailedError
- MemcoUserAlreadyAssignedNetworkError
Constructors
constructor
-
new MemcoUserAlreadyAssignedNetworkError(
code: Status,
detail: string,
debugErrorString?: string,
metadata?: Readonly<Record<string, string>>,
): MemcoUserAlreadyAssignedNetworkErrorParameters
- code: Status
- detail: string
OptionaldebugErrorString: string- metadata: Readonly<Record<string, string>> = {}
Returns MemcoUserAlreadyAssignedNetworkError
Properties
Readonlycode
code: Status
The gRPC status code, as @grpc/grpc-js's numeric status enum.
ReadonlycodeName
codeName: string
The status code's name, such as UNAUTHENTICATED.
Readonlydetail
detail: string
The service's own description of the failure, without the code prefix.
ReadonlydebugErrorString
debugErrorString: string | undefined
gRPC's internal diagnostic string, when the call carried one.
Readonlymetadata
metadata: Readonly<Record<string, string>>
The detail the service attached to the refusal, key to value, such as the network a user is already in. Empty when it attached none. Frozen, and the service's to extend: a key this SDK does not name is still here.
Static Readonlyreason
reason: "USER_ALREADY_ASSIGNED_NETWORK" = 'USER_ALREADY_ASSIGNED_NETWORK'
The reason the service names this refusal by.
ReadonlycurrentNetworkId
currentNetworkId: string | null
The id of the network the user is already in, or null if unsent.
ReadonlycurrentNetworkName
currentNetworkName: string | null
The name of the network the user is already in, or null if unsent.
The user is already in another network of the same memory domain.
A user is placed in one network per domain, so placing them in a second is refused rather than done as a silent move. Pass
force: trueto NetworkOperations.addMember to move them.Example