def endianness(self, endianness): if endianness is None: raise TypeError("Endianness cannot be None.") if endianness not in AbstractType.supportedEndianness(): raise ValueError( "This endianness is not supported, please refer to the list of supported type in AbstractType.supportedEndianness()" ) self.__endianness = endianness
def endianness(self, endianness): if endianness is None: raise TypeError("Endianness cannot be None") if not endianness in AbstractType.supportedEndianness(): raise TypeError( "Specified Endianness is not supported, please refer to the list in AbstractType.supportedEndianness()." ) self.__endianness = endianness