diff options
Diffstat (limited to 'qtip/base/error.py')
-rw-r--r-- | qtip/base/error.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/qtip/base/error.py b/qtip/base/error.py new file mode 100644 index 00000000..d364c532 --- /dev/null +++ b/qtip/base/error.py @@ -0,0 +1,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 |