@blockchaincommons/gstp - v1.0.0-beta.2
    Preparing search index...

    Interface GstpErrorDetailsByCode

    details by code: the protocol rejections carry only their code; the two wrappers carry the wrapped error's code and message.

    interface GstpErrorDetailsByCode {
        SenderMissingEncryptionKey: { code: "SenderMissingEncryptionKey" };
        RecipientMissingEncryptionKey: { code: "RecipientMissingEncryptionKey" };
        SenderMissingVerificationKey: { code: "SenderMissingVerificationKey" };
        ContinuationExpired: { code: "ContinuationExpired" };
        ContinuationIdInvalid: { code: "ContinuationIdInvalid" };
        PeerContinuationNotEncrypted: { code: "PeerContinuationNotEncrypted" };
        MissingPeerContinuation: { code: "MissingPeerContinuation" };
        StateOnFailedResponse: { code: "StateOnFailedResponse" };
        Envelope: {
            code: "Envelope";
            inner: EnvelopeErrorCode | undefined;
            message: string;
        };
        XID: { code: "XID"; inner: XIDErrorCode
        | undefined; message: string };
    }
    Index
    SenderMissingEncryptionKey: { code: "SenderMissingEncryptionKey" }

    The sender's document holds no encryption key.

    Type Declaration

    • Readonlycode: "SenderMissingEncryptionKey"

      The discriminant.

    RecipientMissingEncryptionKey: { code: "RecipientMissingEncryptionKey" }

    A recipient's document holds no encryption key.

    Type Declaration

    • Readonlycode: "RecipientMissingEncryptionKey"

      The discriminant.

    SenderMissingVerificationKey: { code: "SenderMissingVerificationKey" }

    The sender's document holds no verification key.

    Type Declaration

    • Readonlycode: "SenderMissingVerificationKey"

      The discriminant.

    ContinuationExpired: { code: "ContinuationExpired" }

    The continuation's deadline has passed.

    Type Declaration

    • Readonlycode: "ContinuationExpired"

      The discriminant.

    ContinuationIdInvalid: { code: "ContinuationIdInvalid" }

    The continuation is bound to another request id.

    Type Declaration

    • Readonlycode: "ContinuationIdInvalid"

      The discriminant.

    PeerContinuationNotEncrypted: { code: "PeerContinuationNotEncrypted" }

    The peer's continuation arrived in the clear.

    Type Declaration

    • Readonlycode: "PeerContinuationNotEncrypted"

      The discriminant.

    MissingPeerContinuation: { code: "MissingPeerContinuation" }

    A request arrived without the peer's continuation.

    Type Declaration

    • Readonlycode: "MissingPeerContinuation"

      The discriminant.

    StateOnFailedResponse: { code: "StateOnFailedResponse" }

    State was set on a response that is not a success.

    Type Declaration

    • Readonlycode: "StateOnFailedResponse"

      The discriminant.

    Envelope: {
        code: "Envelope";
        inner: EnvelopeErrorCode | undefined;
        message: string;
    }

    An envelope operation failed: inner is the envelope error's code.

    Type Declaration

    • Readonlycode: "Envelope"

      The discriminant.

    • Readonlyinner: EnvelopeErrorCode | undefined

      The envelope error's code.

    • Readonlymessage: string

      The envelope error's message.

    XID: { code: "XID"; inner: XIDErrorCode | undefined; message: string }

    The sender's XID document did not parse: inner is the xid error's code.

    Type Declaration

    • Readonlycode: "XID"

      The discriminant.

    • Readonlyinner: XIDErrorCode | undefined

      The xid error's code.

    • Readonlymessage: string

      The xid error's message.