Main Page
Namespaces
Classes
Files
File List
rtsprofile
exceptions.py
Go to the documentation of this file.
1
# -*- Python -*-
2
# -*- coding: utf-8 -*-
3
4
'''rtsprofile
5
6
Copyright (C) 2009-2010
7
Geoffrey Biggs
8
RT-Synthesis Research Group
9
Intelligent Systems Research Institute,
10
National Institute of Advanced Industrial Science and Technology (AIST),
11
Japan
12
All rights reserved.
13
Licensed under the Eclipse Public License -v 1.0 (EPL)
14
http://www.opensource.org/licenses/eclipse-1.0.txt
15
16
File: exceptions.py
17
18
Exceptions that may occur.
19
20
'''
21
22
__version__ =
'$Revision: $'
23
# $Source$
24
25
26
##############################################################################
27
## Exception types
28
29
class
RtsProfileError
(Exception):
30
'''Base exception for all RtsProfile errors.'''
31
pass
32
33
34
class
MultipleSourcesError
(Exception):
35
'''Multiple XML sources were given.'''
36
pass
37
38
39
class
InvalidTypeError
(
RtsProfileError
):
40
'''Tried to set an attribute using an invalid type.'''
41
pass
42
43
44
class
RequiredAttributeError
(
RtsProfileError
):
45
'''Tried to set a required attribute as empty.'''
46
pass
47
48
49
class
InvalidCompositeTypeError
(
RtsProfileError
):
50
'''Tried to convert an invalid string to a CompositeType constant.'''
51
pass
52
53
54
class
InvalidDirectionError
(
RtsProfileError
):
55
'''Tried to convert an invalid string to a Direction constant.'''
56
pass
57
58
59
class
InvalidDataPortConnectorNodeError
(
RtsProfileError
):
60
'''A data port connector node's XML is invalid (e.g. too many children).'''
61
pass
62
63
64
class
InvalidParticipantNodeError
(
RtsProfileError
):
65
'''A participant node's XML is invalid (e.g. too many children).'''
66
pass
67
68
69
class
InvalidRtsProfileNodeError
(
RtsProfileError
):
70
'''The RtsProfile node's XML is invalid (e.g. too many children of a
71
certain type).'''
72
pass
73
74
75
class
InvalidServicePortConnectorNodeError
(
RtsProfileError
):
76
'''A service port connector node's XML is invalid (e.g. too many
77
children).
78
79
'''
80
pass
81
82
class
MissingComponentError
(
RtsProfileError
):
83
'''A component expected to be present (e.g. by a TargetPort) is not.'''
84
pass
85
86
87
# vim: tw=79
88
rtsprofile.exceptions.InvalidServicePortConnectorNodeError
Definition:
exceptions.py:75
rtsprofile.exceptions.RtsProfileError
Exception types.
Definition:
exceptions.py:29
rtsprofile.exceptions.InvalidCompositeTypeError
Definition:
exceptions.py:49
rtsprofile.exceptions.RequiredAttributeError
Definition:
exceptions.py:44
rtsprofile.exceptions.MultipleSourcesError
Definition:
exceptions.py:34
rtsprofile.exceptions.InvalidParticipantNodeError
Definition:
exceptions.py:64
rtsprofile.exceptions.InvalidTypeError
Definition:
exceptions.py:39
rtsprofile.exceptions.InvalidDirectionError
Definition:
exceptions.py:54
rtsprofile.exceptions.InvalidDataPortConnectorNodeError
Definition:
exceptions.py:59
rtsprofile.exceptions.InvalidRtsProfileNodeError
Definition:
exceptions.py:69
rtsprofile.exceptions.MissingComponentError
Definition:
exceptions.py:82
rtsprofile
Author(s): Geoffrey Biggs
autogenerated on Fri Jun 7 2019 21:52:35