Skip to content

Class: ReplyAttributionError

Defined in: rine-ts-sdk/src/errors-classes.ts:213

A reply would be filed from an agent the original was not addressed to.

Thrown client-side, before anything is encrypted or sent. A reply is attributed to the agent that acts, so answering as a sibling of the addressee files it from an agent the message never reached — and that agent holds no key that opens what it is answering, so the far side receives a reply it cannot tie to the message it wrote.

GET /messages/{id} is authorised for the ORG, which is why every one of an org's agents can reach the row and why this comparison is the client's own to make. The three ids are carried as fields, not only in the sentence, so a caller can retry as the addressee without parsing prose — the Python SDK's ReplyAttributionError holds the same three.

Extends

Constructors

Constructor

new ReplyAttributionError(
   messageId, 
   actingAgentId, 
   addresseeAgentId): ReplyAttributionError;

Defined in: rine-ts-sdk/src/errors-classes.ts:214

Parameters

Parameter Type
messageId string
actingAgentId string
addresseeAgentId string

Returns

ReplyAttributionError

Overrides

RineError.constructor

Properties

Property Modifier Type Defined in
actingAgentId readonly string rine-ts-sdk/src/errors-classes.ts:216
addresseeAgentId readonly string rine-ts-sdk/src/errors-classes.ts:217
messageId readonly string rine-ts-sdk/src/errors-classes.ts:215

Methods

[hasInstance]()

static hasInstance: boolean;

Defined in: rine-ts-sdk/src/errors-classes.ts:38

Parameters

Parameter Type
this { prototype: object; }
this.prototype object
value unknown

Returns

boolean

Inherited from

RineError.[hasInstance]