Revert "use simpler exceptions"

This reverts commit be2cf0f41e6c17fa82ec6fa88d0b44d4548ebae7.
use generic throw from an outside module

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