Throw an error instance instead of a plain string (fix #7)

It allows to get a stacktrace to the error's origin