Skip to content

frame_transfer.h -- document possible exceptions #169

Description

@astewart-xmos

Small documentation update. The documentation for functions in frame_transfer.h should be updated to indicate possible conditions under which exceptions may occur.

In particular, the illegal resource exception can happen for 2 different reasons. The first and most obvious is if the chanends weren't allocated.

Less obvious cause is if there is disagreement between transmitter and receiver about the total number of words to be transferred. The transfer occurs within a transaction, and if either side ends the transaction early, the other side will experience an illegal resource exception.

I already have one case where such a note would have saved someone some time spent debugging, so there will probably be others.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    size:SSmall issue or pull requesttype:documentationConcern about documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions