Exception documentation

Hi, I’m using gtkmm 4.
Can signal.emit() method throw an exception?
Where can I see what exception a method might throw?
I couldn’t find any references in:

This page below has some methods defined as noexcept, does this mean all other might throw?
https://developer-old.gnome.org/libsigc++/stable/classsigc_1_1signal__with__accumulator.html#a0e4688dda6dababe179115755f4bdd2c

g_signal_emit() is not the same as sigc::signal::emit(). The signals you usually
work with in gtkmm are those that glib and gtk emit, i.e. those emitted by g_signal_emit().

Can a signal emission throw an exception? That depends on the signal handlers.
Exceptions from signal handlers in gtkmm are somewhat complicated. Described at
https://gnome.pages.gitlab.gnome.org/gtkmm-documentation/sec-exceptions-in-signal-handlers.html

noexcept is not used consistently in gtkmm and glibmm. Most functions can’t throw.
Usually if a function can throw, it’s mentioned in the documentation.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.