def unitSize(self, unitSize): if unitSize is None: raise TypeError("Unitsize cannot be None.") if unitSize not in AbstractType.supportedUnitSizes(): raise ValueError( "This unitSize is not supported, please refer to the list of supported type in AbstractType.supportedUnitSizes()" ) self.__unitSize = unitSize
def unitSize(self, unitSize): if unitSize is None: raise TypeError("Unitsize cannot be None") if unitSize not in AbstractType.supportedUnitSizes(): raise TypeError("Specified unitsize is not supported, refers to AbstractType.supportedUnitSizes() for the list.") self.__unitSize = unitSize
def unitSize(self, unitSize): if unitSize is None: raise TypeError("Unitsize cannot be None.") if unitSize not in AbstractType.supportedUnitSizes(): raise ValueError("This unitSize is not supported, please refer to the list of supported type in AbstractType.supportedUnitSizes()") self.__unitSize = unitSize
def unitSize(self, unitSize): if unitSize is None: raise TypeError("Unitsize cannot be None") if unitSize not in AbstractType.supportedUnitSizes(): raise TypeError("Specified unitsize is not supported, refers to AbstractType.supportedUnitSizes() for the list.") self.__unitSize = unitSize