~jeanfrancois.roy/mpqkit/1.0b1

« back to all changes in this revision

Viewing changes to MPQErrors.h

  • Committer: bahamut
  • Date: 2007-04-03 01:12:37 UTC
  • Revision ID: svn-v4:08a27de9-96f8-0310-9aec-cd9f9b5b01a8:trunk:158
- svn refactor phase 2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
//  MPQErrors.h
 
3
//  MPQKit
 
4
//
 
5
//  Created by Jean-François Roy on 30/12/2006.
 
6
//  Copyright 2006 MacStorm. All rights reserved.
 
7
//
 
8
 
 
9
#import <Foundation/NSString.h>
 
10
 
 
11
 
 
12
// error domains
 
13
extern NSString *const MPQErrorDomain;
 
14
 
 
15
// MPQ errors
 
16
typedef enum {
 
17
    errUnknown = 1,
 
18
        errBlockTableFull,
 
19
    errHashTableFull,
 
20
    errHashTableEntryNotFound,
 
21
    errCouldNotMemoryMapFile,
 
22
    errFilenameTooLong,
 
23
    errCouldNotConvertFilenameToASCII,
 
24
    errOutOfMemory,
 
25
    errFileIsOpen,
 
26
    errFileExists,
 
27
    errDelegateCancelled,
 
28
    errOperationNotSupported,
 
29
    errCouldNotReadFile,
 
30
    errFileIsDeleted,
 
31
    errFileIsInvalid,
 
32
    errInconsistentCompressionFlags,
 
33
    errInvalidCompressor,
 
34
    errCannotResizeArchive,
 
35
    errArchiveSizeOverflow,
 
36
    errReadOnlyArchive,
 
37
    errCouldNotConvertPathToFSRef,
 
38
    errReadOnlyDestination,
 
39
    errInvalidArchive,
 
40
    errInvalidSectorTableCache,
 
41
    errFilenameRequired,
 
42
    errNoSignature,
 
43
    errNoArchiveFile,
 
44
    errInvalidArchiveVersion,
 
45
    errInvalidArchiveOffset,
 
46
    errInvalidClass,
 
47
    errInvalidDisplacementMode,
 
48
    errInvalidOffset,
 
49
    errDecompressionFailed,
 
50
    errEndOfFile,
 
51
} MPQError;