1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #if !defined(__STOREEXCEPTION_H__)
17 #define __STOREEXCEPTION_H__
24 Class for the exceptions which will be thrown by the PCStore library.
29 //Enumerations for the store open mode
33 library wide error code -1: fail to open file.
38 library wide error code -2: fail to read file.
43 library wide error code -3: fail to write file.
48 library wide error code -4: fail to seek file.
53 library wide error code -5: attemp to create stream while another stream exists.
55 EStreamExclusionError = -5,
58 library wide error code -6: the file is not the supported store type.
60 EStoreNotSupported = -6,
63 library wide error code -7: operation on a mismatching type of store.
68 library wide error code -8: the store file is corrupted.
73 library wide error code -9: the maximum length of the descriptor overfloates
77 TStoreException(EStoreError aCode);
80 EStoreError iErrorCode;
83 #endif // !defined(__STOREEXCEPTION_H__)