def METHOD_NAME(function):
    """ Wrap any raised struct.errors in a ConversionError. """
    @wraps(function)
    def result(self, value):
        try:
            return function(self, value)
        except struct.error as e:
            raise ConversionError(e.args[0])
    return result