blob: 8bb6d2bd0e69ae1dc3728d097c16522641fbedbf [file] [log] [blame]
Sergei Trofimov4e6afe92015-10-09 09:30:04 +01001# Copyright 2013-2015 ARM Limited
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16
17from devlib.utils.misc import TimeoutError # NOQA pylint: disable=W0611
18
19
20class DevlibError(Exception):
21 """Base class for all Workload Automation exceptions."""
22 pass
23
24
25class TargetError(DevlibError):
26 """An error has occured on the target"""
27 pass
28
29
30class TargetNotRespondingError(DevlibError):
31 """The target is unresponsive."""
32
33 def __init__(self, target):
34 super(TargetNotRespondingError, self).__init__('Target {} is not responding.'.format(target))
35
36
37class HostError(DevlibError):
38 """An error has occured on the host"""
39 pass
40