use external throw module for exception raising

Signed-off-by: Jan Dvořák <mordae@anilinux.org>