Skip to content

Class: OrgMismatchError

Defined in: rine-core/dist/src/errors-refusals.d.ts:31

The server names a different org than the one this profile was created under.

Raised by whoami() before anything is trusted: a server that answers with another org's id is either misconfigured or an impersonation, and every key pin in this profile belongs to the org it recorded.

Extends

  • Error

Constructors

Constructor

new OrgMismatchError(localOrgId, serverOrgId): OrgMismatchError;

Defined in: rine-core/dist/src/errors-refusals.d.ts:35

Parameters

Parameter Type
localOrgId string
serverOrgId string

Returns

OrgMismatchError

Overrides

Error.constructor

Properties

Property Modifier Type Default value Defined in
code readonly "RINE_ORG_MISMATCH" "RINE_ORG_MISMATCH" rine-core/dist/src/errors-refusals.d.ts:34
localOrgId readonly string undefined rine-core/dist/src/errors-refusals.d.ts:32
serverOrgId readonly string undefined rine-core/dist/src/errors-refusals.d.ts:33