DBError.h 638 B

123456789101112131415161718192021
  1. //
  2. // DBError.h
  3. // DropboxSDK
  4. //
  5. // Created by Brian Smith on 7/21/10.
  6. // Copyright 2010 Dropbox, Inc. All rights reserved.
  7. //
  8. /* This file contains error codes and the dropbox error domain */
  9. extern NSString* DBErrorDomain;
  10. // Error codes in the dropbox.com domain represent the HTTP status code if less than 1000
  11. typedef enum {
  12. DBErrorNone = 0,
  13. DBErrorGenericError = 1000,
  14. DBErrorFileNotFound,
  15. DBErrorInsufficientDiskSpace,
  16. DBErrorIllegalFileType, // Error sent if you try to upload a directory
  17. DBErrorInvalidResponse, // Sent when the client does not get valid JSON when it's expecting it
  18. } DBErrorCode;