From 154ef46c20f61b3f338b307f3325f4ac5a8f271b Mon Sep 17 00:00:00 2001 From: William Woodall Date: Sun, 15 Jan 2012 17:32:33 -0600 Subject: [PATCH] Fixing exception handler setting function --- include/serial/serial_listener.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/include/serial/serial_listener.h b/include/serial/serial_listener.h index 543e29f..42d30d8 100644 --- a/include/serial/serial_listener.h +++ b/include/serial/serial_listener.h @@ -458,21 +458,21 @@ public: /***** Hooks and Handlers ******/ -/*! - * Sets the function to be called when an exception occurs internally. - * - * This allows you to hook into the exceptions that occur in threads inside - * the serial listener library. - * - * \param exception_handler A function pointer to the callback to handle new - * interal exceptions. - * - * \see serial::ExceptionCallback - */ -void -setWarningHandler (ExceptionCallback exception_handler) { - this->handle_exc = exception_handler; -} + /*! + * Sets the function to be called when an exception occurs internally. + * + * This allows you to hook into the exceptions that occur in threads inside + * the serial listener library. + * + * \param exception_handler A function pointer to the callback to handle new + * interal exceptions. + * + * \see serial::ExceptionCallback + */ + void + setExceptionHandler (ExceptionCallback exception_handler) { + this->handle_exc = exception_handler; + } /***** Static Functions ******/