setInheritanceStorageMode throws an exception if the mode is not allowed