LionWeb-io / specification

Specifications of the LionWeb initiative
http://lionweb.io/specification/
7 stars 0 forks source link

Repository error event #316

Open enikao opened 1 week ago

enikao commented 1 week ago

Similar to #314, we might need a "repository error" event.

In the real world, things might go wrong in the repository. Clients should at least have the chance to inform the user about it.

The repository error event would carry a human-readable message, and an error code. The error code would be an undefined string. Rationale: There are too many things that can go wrong for us to specify, but we also don't want to resort to parsing the human-readable message if our client has some specific means to handle specific kinds of issues.

This could be the same as the no-op event from #314.

Pro:

Con:

joswarmer commented 4 days ago

Depending on the answer to https://github.com/LionWeb-io/specification/issues/315, we might only have one event type (and many change types).