Statistics
| Branch: | Tag: | Revision:

root / ncclient / __init__.py @ 4ba5e843

History | View | Annotate | Download (887 Bytes)

1 589b23e4 Shikhar Bhushan
# Copyright 2009 Shikhar Bhushan
2 589b23e4 Shikhar Bhushan
#
3 589b23e4 Shikhar Bhushan
# Licensed under the Apache License, Version 2.0 (the "License");
4 589b23e4 Shikhar Bhushan
# you may not use this file except in compliance with the License.
5 589b23e4 Shikhar Bhushan
# You may obtain a copy of the License at
6 589b23e4 Shikhar Bhushan
#
7 589b23e4 Shikhar Bhushan
#    http://www.apache.org/licenses/LICENSE-2.0
8 589b23e4 Shikhar Bhushan
#
9 589b23e4 Shikhar Bhushan
# Unless required by applicable law or agreed to in writing, software
10 589b23e4 Shikhar Bhushan
# distributed under the License is distributed on an "AS IS" BASIS,
11 589b23e4 Shikhar Bhushan
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 589b23e4 Shikhar Bhushan
# See the License for the specific language governing permissions and
13 589b23e4 Shikhar Bhushan
# limitations under the License.
14 589b23e4 Shikhar Bhushan
15 a956ef07 Shikhar Bhushan
import sys
16 a956ef07 Shikhar Bhushan
17 a956ef07 Shikhar Bhushan
if sys.version_info < (2, 5):
18 a956ef07 Shikhar Bhushan
    raise RuntimeError('You need python 2.5 for this module.')
19 a956ef07 Shikhar Bhushan
20 a956ef07 Shikhar Bhushan
__version__ = "0.05"
21 f5c75f88 Shikhar Bhushan
22 4ba5e843 Shikhar Bhushan
class NCClientError(Exception):
23 4ba5e843 Shikhar Bhushan
    pass
24 4ba5e843 Shikhar Bhushan
25 4ba5e843 Shikhar Bhushan
class TransportError(NCClientError):
26 4ba5e843 Shikhar Bhushan
    pass
27 4ba5e843 Shikhar Bhushan
28 4ba5e843 Shikhar Bhushan
class OperationError(NCClientError):
29 4ba5e843 Shikhar Bhushan
    pass
30 4ba5e843 Shikhar Bhushan
31 4ba5e843 Shikhar Bhushan
class ContentError(NCClientError):
32 f5c75f88 Shikhar Bhushan
    pass