Skip to content

Commit

Permalink
moved comment about exceptions a bit up
Browse files Browse the repository at this point in the history
  • Loading branch information
EmielBruijntjes committed Dec 31, 2022
1 parent d8ea41a commit 0a8c26b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ class MyConnectionHandler : public AMQP::ConnectionHandler
};
````

Even though `ConnectionHandler` methods are not marked `noexcept` explicitly,
you are not expected to throw from them, and the behaviour is undefined if you
do so.

After you've implemented the `ConnectionHandler` class the way you like,
you can start using the library by creating a `Connection` object, and one
or more `Channel` objects:
Expand Down Expand Up @@ -295,9 +299,6 @@ However, this is not strictly necessary. Methods called during a handshake
are cached by the AMQP library, and will be executed the moment the handshake
is completed and the connection becomes ready for use.
And the last but not least: even though `ConnectionHandler` methods are not
marked `noexcept` explicitly, you are not expected to throw from them, and
the behaviour is undefined if you do so.
PARSING INCOMING DATA
=====================
Expand Down

0 comments on commit 0a8c26b

Please sign in to comment.