1
|
|
|
# |
2
|
|
|
# Copyright (c) 2015 SUSE Linux GmbH |
3
|
|
|
# |
4
|
|
|
# This program is free software; you can redistribute it and/or |
5
|
|
|
# modify it under the terms of version 3 of the GNU General Public License as |
6
|
|
|
# published by the Free Software Foundation. |
7
|
|
|
# |
8
|
|
|
# This program is distributed in the hope that it will be useful, |
9
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
10
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11
|
|
|
# GNU General Public License for more details. |
12
|
|
|
# |
13
|
|
|
# You should have received a copy of the GNU General Public License |
14
|
|
|
# along with this program; if not, contact SUSE LLC. |
15
|
|
|
# |
16
|
|
|
# To contact SUSE about this file by physical or electronic mail, |
17
|
|
|
# you may find current contact information at www.suse.com |
18
|
|
|
|
19
|
|
|
class DMInvalidXMLHandlerObject(Exception): |
20
|
|
|
pass |
21
|
|
|
|
22
|
|
|
class DMAnalyzeInvalidFilterSyntax(Exception): |
23
|
|
|
pass |
24
|
|
|
|
25
|
|
|
class DMConfigFileNotFound(Exception): |
26
|
|
|
pass |
27
|
|
|
|
28
|
|
|
class DMNotDocBook5File(Exception): |
29
|
|
|
def __init__(self, errorstr, error): |
30
|
|
|
self.errorstr = errorstr |
31
|
|
|
self.error = error |
32
|
|
|
|
33
|
|
|
class DMXmlParseError(Exception): |
34
|
|
|
def __init__(self, errorstr, error): |
35
|
|
|
self.errorstr = errorstr |
36
|
|
|
self.error = error |
37
|
|
|
|
38
|
|
|
class DMInvalidXMLRootElement(Exception): |
39
|
|
|
def __init__(self, errorstr, error): |
40
|
|
|
self.errorstr = errorstr |
41
|
|
|
self.error = error |
42
|
|
|
|
43
|
|
|
class DMFileNotFoundError(Exception): |
44
|
|
|
def __init__(self, errorstr, filename, error): |
45
|
|
|
self.errorstr = errorstr |
46
|
|
|
self.error = error |
47
|
|
|
self.filename = filename |
48
|
|
|
|
49
|
|
|
class DMPropertyNotFound(Exception): |
50
|
|
|
def __init__(self, filename, prop): |
51
|
|
|
self.filename = filename |
52
|
|
|
self.property = prop |