This document describes the mapping from OBEX layer errors to GnomeVFSResults.

*NOTE* that, like with any GnomeVFS module, you can receive any of the
GnomeVFSResults from this module so you should handle all of them.

GW_OBEX_ERROR_ABORT: 
  GNOME_VFS_ERROR_CANCELLED

GW_OBEX_UNKNOWN_LENGTH:
  GNOME_VFS_ERROR_INTERNAL
 
GW_OBEX_ERROR_INTERNAL:
  GNOME_VFS_ERROR_INTERNAL

GW_OBEX_ERROR_DISCONNECT:
  GNOME_VFS_ERROR_IO

GW_OBEX_ERROR_TIMEOUT:
  GNOME_VFS_ERROR_IO

GW_OBEX_ERROR_BUSY:
  GNOME_VFS_ERROR_IN_PROGRESS

0x48 (REQUEST_TIME_OUT):
  GNOME_VFS_ERROR_IO

OBEX_RSP_NOT_FOUND:
  GNOME_VFS_ERROR_NOT_FOUND

OBEX_RSP_FORBIDDEN:
  GNOME_VFS_ERROR_NOT_PERMITTED

OBEX_RSP_DATABASE_LOCKED:
  GNOME_VFS_ERROR_NOT_PERMITTED

0x46 (NOT_ACCEPTABLE):
  GNOME_VFS_ERROR_NOT_PERMITTED

OBEX_RSP_BAD_REQUEST:
  GNOME_VFS_ERROR_NOT_SUPPORTED

OBEX_RSP_NOT_IMPLEMENTED:
  GNOME_VFS_ERROR_NOT_SUPPORTED

GW_OBEX_ERROR_CONNECT_FAILED:
  GNOME_VFS_ERROR_SERVICE_NOT_AVAILABLE

GW_OBEX_ERROR_INVALID_DATA:
  GNOME_VFS_ERROR_CORRUPTED_DATA

GW_OBEX_ERROR_NO_SERVICE:
 GNOME_VFS_ERROR_NOT_SUPPORTED


All other errors from the OBEX layer are translated into 
GNOME_VFS_ERROR_GENERIC, if you want to add more translations this should be done to the function:

GnomeVFSResult  om_utils_obex_error_to_vfs_result (gint error);

in src/om-utils.c

