Added exceptions to the constructors