added 'throw' functions

Signed-off-by: Yoannis Jamar <yoannis@moresleep.net>