projects
/
tools
/
gbs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09c2860
)
Add general GBS error class
author
Hasan Wan
<hasan.wan@intel.com>
Sun, 1 Apr 2012 06:54:15 +0000
(14:54 +0800)
committer
Hasan Wan
<hasan.wan@intel.com>
Sun, 1 Apr 2012 06:54:15 +0000
(14:54 +0800)
gitbuildsys/errors.py
patch
|
blob
|
history
diff --git
a/gitbuildsys/errors.py
b/gitbuildsys/errors.py
index 047372e0e37bd31146a0de5be9e1f69379ab30fb..5d56014dc459a3905d21343d6d13d6477d1e4c55 100644
(file)
--- a/
gitbuildsys/errors.py
+++ b/
gitbuildsys/errors.py
@@
-54,3
+54,11
@@
class FormatError(CmdError):
class Abort(CmdError):
keyword = ''
+
+class GBSError(Exception):
+
+ def __init__(self, msg):
+ self.msg = msg
+
+ def __str__(self):
+ return self.msg