Fixed unneeded throws declarations

Signed-off-by: Ondrej Skopek <skopekondrej@gmail.com>