Updated slag to throw exception in constructor