source: box/trunk/lib/common/CommonException.txt @ 2678

Revision 2678, 2.5 KB checked in by chris, 2 years ago (diff)

Add new exception codes for database errors.

  • Property svn:eol-style set to native
Line 
1
2# NOTE: Exception descriptions are for public distributions of Box Backup only -- do not rely for other applications.
3
4
5EXCEPTION Common 1
6
7Internal                        0
8AssertFailed            1
9OSFileOpenError         2       Can't open a file -- attempted to load a non-existant config file or bad file referenced within?
10OSFileCloseError        3
11FileAlreadyClosed       4
12BadArguments            5
13ConfigNoKey                     6
14ConfigNoSubConfig       7
15GetLineNoHandle         8
16OSFileError                     9       Error accessing a file. Check permissions.
17GetLineEOF                      10
18ConfigBadIntValue       11
19GetLineTooLarge         12      Protects against very large lines using up lots of memory.
20NotSupported            13
21OSFileReadError         14
22OSFileWriteError        15
23FileClosed                      16
24IOStreamBadSeekType     17
25CantWriteToPartialReadStream                    18
26CollectInBufferStreamNotInCorrectPhase  19
27NamedLockAlreadyLockingSomething                20
28NamedLockNotHeld                                                21
29StreamableMemBlockIncompleteRead                22
30MemBlockStreamNotSupported                              23
31StreamDoesntHaveRequiredProperty                24
32CannotWriteToReadGatherStream                   25
33ReadGatherStreamAddingBadBlock                  26
34CouldNotLookUpUsername                                  27
35CouldNotRestoreProcessUser                              28
36CouldNotChangeProcessUser                               29
37RegexNotSupportedOnThisPlatform                 30      Your platform does not have built in regular expression libraries.
38BadRegularExpression                                    31
39CouldNotCreateKQueue                                    32
40KEventErrorAdd                                                  33
41KEventErrorWait                                                 34
42KEventErrorRemove                                               35
43KQueueNotSupportedOnThisPlatform                36
44IOStreamGetLineNotEnoughDataToIgnore    37      Bad value passed to IOStreamGetLine::IgnoreBufferedData()
45TempDirPathTooLong                              38      Your temporary directory path is too long. Check the TMP and TEMP environment variables.
46ArchiveBlockIncompleteRead              39      The Store Object Info File is too short or corrupted, and will be rewritten automatically when the next backup completes.
47AccessDenied                            40      Access to the file or directory was denied. Please check the permissions.
48DatabaseOpenFailed                      41      Failed to open the database file
49DatabaseReadFailed                      42      Failed to read a record from the database file
50DatabaseWriteFailed                     43      Failed to write a record from the database file
51DatabaseDeleteFailed                    44      Failed to delete a record from the database file
52DatabaseCloseFailed                     45      Failed to close the database file
53DatabaseRecordNotFound                  46      The database does not contain the expected record
54DatabaseRecordAlreadyExists             47      The database already contains a record with this key, which was not expected
55DatabaseRecordBadSize                   48      The database contains a record with an invalid size
56DatabaseIterateFailed                   49      Failed to iterate over the database keys
57ReferenceNotFound                       50      The database does not contain an expected reference
Note: See TracBrowser for help on using the repository browser.