Skip to content

Commit

Permalink
feat: use specific error for deleted owner of RelationshipTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
britsta committed Dec 12, 2024
1 parent fe99872 commit 9d635c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _docs_integrate/delete-identities.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ The deletion of an Identity has effects on [creating a new Relationship](#creati
### Creation of New Relationships

To [establish a Relationship]({% link _docs_integrate/establish-relationships.md %}), an Identity must first create a [RelationshipTemplate]({% link _docs_integrate/data-model-overview.md %}#relationshiptemplate), which is then used by its peer to create a [Relationship]({% link _docs_integrate/data-model-overview.md %}#relationship) with `"Pending"` as `status`.
However, if the creator of the RelationshipTemplate is meanwhile in deletion or has already deleted itself, the peer will receive an error with [error code]({% link _docs_integrate/error-codes.md %}) `error.transport.relationships.activeIdentityDeletionProcessOfOwnerOfRelationshipTemplate` or `error.platform.recordNotFound`, respectively, when trying to create a new Relationship using the RelationshipTemplate.
However, if the creator of the RelationshipTemplate is meanwhile in deletion or has already deleted itself, the peer will receive an error with [error code]({% link _docs_integrate/error-codes.md %}) `error.transport.relationships.activeIdentityDeletionProcessOfOwnerOfRelationshipTemplate` or `error.transport.relationships.deletedOwnerOfRelationshipTemplate`, respectively, when trying to create a new Relationship using the RelationshipTemplate.

### Sending Messages

Expand Down
3 changes: 2 additions & 1 deletion _docs_integrate/error-codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ Please find a list of enmeshed error codes below. Most often the errors occur on
| {% include anchor a="error.transport.messages.signatureNotValid" %} | The digital signature on a [Message]({% link _docs_integrate/data-model-overview.md %}#message) for a peer `key` is invalid. An impersonation attack might be the cause of this. |
| {% include anchor a="error.transport.notSupported" %} | The requested method is not yet supported. |
| {% include anchor a="error.transport.recordNotFound" %} | The requested record was not found. |
| {% include anchor a="error.transport.relationships.<br>activeIdentityDeletionProcessOfOwnerOfRelationshipTemplate" %} | The [Identity]({% link _docs_integrate/data-model-overview.md %}#identity) who created the [RelationshipTemplate]({% link _docs_integrate/data-model-overview.md %}#relationshiptemplate) is currently in the process of deleting itself. Thus, it is not possible to establish a [Relationship]({% link _docs_integrate/data-model-overview.md %}#relationship) to it. |
| {% include anchor a="error.transport.relationships.<br>activeIdentityDeletionProcessOfOwnerOfRelationshipTemplate" %} | The [Identity]({% link _docs_integrate/data-model-overview.md %}#identity) that created the [RelationshipTemplate]({% link _docs_integrate/data-model-overview.md %}#relationshiptemplate) is currently in the process of deleting itself. Thus, it is not possible to establish a [Relationship]({% link _docs_integrate/data-model-overview.md %}#relationship) to it. |
| {% include anchor a="error.transport.relationships.deletedOwnerOfRelationshipTemplate" %} | The [Identity]({% link _docs_integrate/data-model-overview.md %}#identity) that created the [RelationshipTemplate]({% link _docs_integrate/data-model-overview.md %}#relationshiptemplate) has been deleted in the meantime. Thus, it is not possible to establish a [Relationship]({% link _docs_integrate/data-model-overview.md %}#relationship) to it. |
| {% include anchor a="error.transport.relationships.operationOnlyAllowedForPeer" %} | Only your peer may run the requested operation. |
| {% include anchor a="error.transport.relationships.reactivationAlreadyRequested" %} | The reactivation of the [Relationship]({% link _docs_integrate/data-model-overview.md %}#relationship) was requested already. |
| {% include anchor a="error.transport.relationships.reactivationNotRequested" %} | There's no [Relationship]({% link _docs_integrate/data-model-overview.md %}#relationship) reactivation [Request]({% link _docs_integrate/data-model-overview.md %}#request) to respond to. |
Expand Down

0 comments on commit 9d635c3

Please sign in to comment.