This introduces Local and Remote ProtocolError exceptions that are raised when things go awry do to either the remote or local actions. It replaces ValueError exceptions and the Fail event. It also adapts the principle of #92 to the exceptions named in this pull request (the principle is the same). The naming is taken from h11. Finally the state is exposed as a read only property to allow for any user to know the current connection state.
This introduces Local and Remote ProtocolError exceptions that are raised when things go awry do to either the remote or local actions. It replaces ValueError exceptions and the Fail event. It also adapts the principle of #92 to the exceptions named in this pull request (the principle is the same). The naming is taken from h11. Finally the state is exposed as a read only property to allow for any user to know the current connection state.