RIFT OSM R1 Initial Submission
[osm/SO.git] / rwcal / plugins / vala / rwcal_aws / rift / rwcal / aws / exceptions.py
1
2 #
3 # Copyright 2016 RIFT.IO Inc
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17
18 #
19 # Rift Exceptions:
20 # These exceptions each coorespond with a rift status as they are defined
21 # in rwtypes.vala. Adding them here so that errors from C transistioning
22 # back to python can be handled in a pythonic manner rather than having to
23 # inspect return values.
24
25 class RWErrorFailure(Exception):
26 pass
27
28 class RWErrorDuplicate(Exception):
29 pass
30
31 class RWErrorNotFound(Exception):
32 pass
33
34 class RWErrorOutOfBounds(Exception):
35 pass
36
37 class RWErrorBackpressure(Exception):
38 pass
39
40 class RWErrorTimeout(Exception):
41 pass
42
43 class RWErrorExists(Exception):
44 pass
45
46 class RWErrorNotEmpty(Exception):
47 pass
48
49 class RWErrorNotConnected(Exception):
50 pass
51
52 class RWErrorNotSupported(Exception):
53 pass
54