Exemplo n.º 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
Exemplo n.º 2
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
Exemplo n.º 3
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
Exemplo n.º 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