author | Sverre Rabbelier <srabbelier@gmail.com> |
Sat, 14 Mar 2009 16:08:09 +0000 | |
changeset 1850 | 1e39b32ff4d7 |
parent 1849 | f8728d5e2e07 |
child 1888 | ef350db7f753 |
permissions | -rw-r--r-- |
1822
c6bb25fa7f7b
Create an error module containing the top-level error class.
David Anderson <david.jc.anderson@gmail.com>
parents:
diff
changeset
|
1 |
# Copyright 2009 the Melange authors. |
c6bb25fa7f7b
Create an error module containing the top-level error class.
David Anderson <david.jc.anderson@gmail.com>
parents:
diff
changeset
|
2 |
# |
c6bb25fa7f7b
Create an error module containing the top-level error class.
David Anderson <david.jc.anderson@gmail.com>
parents:
diff
changeset
|
3 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
c6bb25fa7f7b
Create an error module containing the top-level error class.
David Anderson <david.jc.anderson@gmail.com>
parents:
diff
changeset
|
4 |
# you may not use this file except in compliance with the License. |
c6bb25fa7f7b
Create an error module containing the top-level error class.
David Anderson <david.jc.anderson@gmail.com>
parents:
diff
changeset
|
5 |
# You may obtain a copy of the License at |
c6bb25fa7f7b
Create an error module containing the top-level error class.
David Anderson <david.jc.anderson@gmail.com>
parents:
diff
changeset
|
6 |
# |
c6bb25fa7f7b
Create an error module containing the top-level error class.
David Anderson <david.jc.anderson@gmail.com>
parents:
diff
changeset
|
7 |
# http://www.apache.org/licenses/LICENSE-2.0 |
c6bb25fa7f7b
Create an error module containing the top-level error class.
David Anderson <david.jc.anderson@gmail.com>
parents:
diff
changeset
|
8 |
# |
c6bb25fa7f7b
Create an error module containing the top-level error class.
David Anderson <david.jc.anderson@gmail.com>
parents:
diff
changeset
|
9 |
# Unless required by applicable law or agreed to in writing, software |
c6bb25fa7f7b
Create an error module containing the top-level error class.
David Anderson <david.jc.anderson@gmail.com>
parents:
diff
changeset
|
10 |
# distributed under the License is distributed on an "AS IS" BASIS, |
c6bb25fa7f7b
Create an error module containing the top-level error class.
David Anderson <david.jc.anderson@gmail.com>
parents:
diff
changeset
|
11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
c6bb25fa7f7b
Create an error module containing the top-level error class.
David Anderson <david.jc.anderson@gmail.com>
parents:
diff
changeset
|
12 |
# See the License for the specific language governing permissions and |
c6bb25fa7f7b
Create an error module containing the top-level error class.
David Anderson <david.jc.anderson@gmail.com>
parents:
diff
changeset
|
13 |
# limitations under the License. |
c6bb25fa7f7b
Create an error module containing the top-level error class.
David Anderson <david.jc.anderson@gmail.com>
parents:
diff
changeset
|
14 |
|
c6bb25fa7f7b
Create an error module containing the top-level error class.
David Anderson <david.jc.anderson@gmail.com>
parents:
diff
changeset
|
15 |
__authors__ = [ |
c6bb25fa7f7b
Create an error module containing the top-level error class.
David Anderson <david.jc.anderson@gmail.com>
parents:
diff
changeset
|
16 |
# alphabetical order by last name, please |
c6bb25fa7f7b
Create an error module containing the top-level error class.
David Anderson <david.jc.anderson@gmail.com>
parents:
diff
changeset
|
17 |
'"David Anderson" <dave@natulte.net>', |
c6bb25fa7f7b
Create an error module containing the top-level error class.
David Anderson <david.jc.anderson@gmail.com>
parents:
diff
changeset
|
18 |
] |
c6bb25fa7f7b
Create an error module containing the top-level error class.
David Anderson <david.jc.anderson@gmail.com>
parents:
diff
changeset
|
19 |
|
c6bb25fa7f7b
Create an error module containing the top-level error class.
David Anderson <david.jc.anderson@gmail.com>
parents:
diff
changeset
|
20 |
|
c6bb25fa7f7b
Create an error module containing the top-level error class.
David Anderson <david.jc.anderson@gmail.com>
parents:
diff
changeset
|
21 |
class Error(Exception): |
1835
3f30b7b14c57
Fix indentation to match Melange/Google style.
David Anderson <david.jc.anderson@gmail.com>
parents:
1822
diff
changeset
|
22 |
"""Base class for release script exceptions.""" |
1849
f8728d5e2e07
Factor out the Subversion wrapper to a separate module.
David Anderson <david.jc.anderson@gmail.com>
parents:
1835
diff
changeset
|
23 |
|
f8728d5e2e07
Factor out the Subversion wrapper to a separate module.
David Anderson <david.jc.anderson@gmail.com>
parents:
1835
diff
changeset
|
24 |
|
f8728d5e2e07
Factor out the Subversion wrapper to a separate module.
David Anderson <david.jc.anderson@gmail.com>
parents:
1835
diff
changeset
|
25 |
class ObstructionError(Error): |
f8728d5e2e07
Factor out the Subversion wrapper to a separate module.
David Anderson <david.jc.anderson@gmail.com>
parents:
1835
diff
changeset
|
26 |
"""An operation was obstructed by existing data.""" |
f8728d5e2e07
Factor out the Subversion wrapper to a separate module.
David Anderson <david.jc.anderson@gmail.com>
parents:
1835
diff
changeset
|
27 |
|
f8728d5e2e07
Factor out the Subversion wrapper to a separate module.
David Anderson <david.jc.anderson@gmail.com>
parents:
1835
diff
changeset
|
28 |
|
f8728d5e2e07
Factor out the Subversion wrapper to a separate module.
David Anderson <david.jc.anderson@gmail.com>
parents:
1835
diff
changeset
|
29 |
class ExpectationFailed(Error): |
f8728d5e2e07
Factor out the Subversion wrapper to a separate module.
David Anderson <david.jc.anderson@gmail.com>
parents:
1835
diff
changeset
|
30 |
"""An unexpected state was encountered by an automated step.""" |