Add thrown exception to function prototypes