Added the exception for invalid vector creation in the constructor.
Also added the error to the error.hpp