Exemple #1
0
 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
Exemple #4
0
 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