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 
40  '''Tried to set an attribute using an invalid type.'''
41  pass
42 
43 
45  '''Tried to set a required attribute as empty.'''
46  pass
47 
48 
50  '''Tried to convert an invalid string to a CompositeType constant.'''
51  pass
52 
53 
55  '''Tried to convert an invalid string to a Direction constant.'''
56  pass
57 
58 
60  '''A data port connector node's XML is invalid (e.g. too many children).'''
61  pass
62 
63 
65  '''A participant node's XML is invalid (e.g. too many children).'''
66  pass
67 
68 
70  '''The RtsProfile node's XML is invalid (e.g. too many children of a
71  certain type).'''
72  pass
73 
74 
76  '''A service port connector node's XML is invalid (e.g. too many
77  children).
78 
79  '''
80  pass
81 
83  '''A component expected to be present (e.g. by a TargetPort) is not.'''
84  pass
85 
86 
87 # vim: tw=79
88 


rtsprofile
Author(s): Geoffrey Biggs
autogenerated on Fri Jun 7 2019 21:52:35