summaryrefslogtreecommitdiffstats
path: root/qtip/base/error.py
blob: d364c532b4bc8de62bfdb58e4e6e3f053eb6b26f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
##############################################################################
# Copyright (c) 2016 ZTE Corp and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################


class QtipError(Exception):
    pass


class InvalidFormat(QtipError):
    def __init__(self, filename):
        self.filename = filename


class NotFound(QtipError):
    def __init__(self, module, package='qtip'):
        self.package = package
        self.module = module