code: def struct_member_error(err, sid, name, offset, size):
      
      exception, msg = STRUCT_ERROR_MAP[err]
      struct_name = idc.GetStrucName(sid)
      return exception(('AddStructMember(struct="{}", member="{}", offset={}, size={}) '
                        'failed: {}').format(
          struct_name,
          name,
          offset,
          size,
          msg
      ))
docs: Create and format a struct member exception.
  
      Args:
          err: The error value returned from struct member creation
          sid: The struct id
          name: The member name
          offset: Memeber offset
          size: Member size
  
      Returns:
          A ``SarkErrorAddStructMemeberFailed`` derivative exception, with an
          informative message.