@stricahq/ouroboros-network-js - v2.0.0
    Preparing search index...

    Class ProtocolViolationError

    A message was sent, or arrived, in a state that does not allow it. side says who broke the rules: client for a request this process made, thrown from the request method before anything is sent, or node for a message the node sent, reported as an error event after which the connection is closed.

    Hierarchy

    • Error
      • ProtocolViolationError
    Index
    • Parameters

      • protocol: string
      • state: string
      • side: "client" | "node"
      • detail: string

      Returns ProtocolViolationError

    protocol: string

    the mini protocol, e.g. NodeToClientChainSync

    side: "client" | "node"
    state: string

    the protocol's state at the time, e.g. StCanAwait