|
1 # |
|
2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 # All rights reserved. |
|
4 # This component and the accompanying materials are made available |
|
5 # under the terms of "Eclipse Public License v1.0" |
|
6 # which accompanies this distribution, and is available |
|
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 # |
|
9 # Initial Contributors: |
|
10 # Nokia Corporation - initial contribution. |
|
11 # |
|
12 # Contributors: |
|
13 # |
|
14 # Description: |
|
15 # |
|
16 |
|
17 from cone.public import exceptions |
|
18 |
|
19 |
|
20 # ============================================================================ |
|
21 # Writer exceptions |
|
22 # ============================================================================ |
|
23 |
|
24 class HcrWriterError(exceptions.ConeException): |
|
25 pass |
|
26 |
|
27 class DuplicateRecordError(HcrWriterError): |
|
28 pass |
|
29 |
|
30 class ValueNotInRangeError(HcrWriterError): |
|
31 pass |
|
32 |
|
33 class TooLargeLsdDataError(HcrWriterError): |
|
34 pass |
|
35 |
|
36 # ============================================================================ |
|
37 # Reader exceptions |
|
38 # ============================================================================ |
|
39 |
|
40 class HcrReaderError(exceptions.ParseError): |
|
41 pass |
|
42 |
|
43 class InvalidHcrDataSizeError(HcrReaderError): |
|
44 pass |
|
45 |
|
46 class InvalidHcrHeaderError(HcrReaderError): |
|
47 pass |
|
48 |
|
49 class InvalidLsdSectionOffsetError(HcrReaderError): |
|
50 pass |
|
51 |
|
52 class NoVersionInRepositoryError(HcrReaderError): |
|
53 pass |
|
54 |
|
55 class NoReadOnlyAttributeInRepositoryError(HcrReaderError): |
|
56 pass |
|
57 |
|
58 |
|
59 class InvalidRecordLsdPositionError(HcrReaderError): |
|
60 pass |
|
61 |
|
62 class InvalidRecordValueTypeError(HcrReaderError): |
|
63 pass |
|
64 |
|
65 |
|
66 |
|
67 # ============================================================================ |
|
68 # HCRML parser exceptions |
|
69 # ============================================================================ |
|
70 |
|
71 class HcrmlParserError(exceptions.ParseError): |
|
72 pass |
|
73 |
|
74 class NoCategoryUIDInHcrmlFileError(HcrmlParserError): |
|
75 pass |
|
76 |
|
77 class NoRefInHcrmlFileError(HcrmlParserError): |
|
78 pass |
|
79 |
|
80 class NoTypeAttributeInSettingHcrmlFileError(HcrmlParserError): |
|
81 pass |
|
82 |
|
83 class NoCategoryNameInHcrmlFileError(HcrmlParserError): |
|
84 pass |
|
85 |
|
86 class NoNameAttributeInSettingHcrmlFileError(HcrmlParserError): |
|
87 pass |
|
88 |
|
89 class NoIdAttributeInSettingHcrmlFileError(HcrmlParserError): |
|
90 pass |
|
91 |
|
92 class NoTypeDefinedInOutPutTagError(HcrmlParserError): |
|
93 pass |
|
94 |
|
95 class InvalidTypeDefinedInOutPutTagError(HcrmlParserError): |
|
96 pass |
|
97 |
|
98 class NoCategoryNameDefinedInCategoryTagError(HcrmlParserError): |
|
99 pass |
|
100 |
|
101 class NoCategoryUidDefinedInCategoryTagError(HcrmlParserError): |
|
102 pass |
|
103 |