From 92ab44a213b88b510e9d86865a3630fa0b664313 Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Sat, 16 Feb 2013 23:02:26 +0000 Subject: Moved leap/mx/util/exceptions.py to leap/mx/exceptions.py. --- src/leap/mx/exceptions.py | 23 +++++++++++++++++++++++ src/leap/mx/util/exceptions.py | 23 ----------------------- 2 files changed, 23 insertions(+), 23 deletions(-) create mode 100644 src/leap/mx/exceptions.py delete mode 100644 src/leap/mx/util/exceptions.py diff --git a/src/leap/mx/exceptions.py b/src/leap/mx/exceptions.py new file mode 100644 index 0000000..63b946c --- /dev/null +++ b/src/leap/mx/exceptions.py @@ -0,0 +1,23 @@ +#! -*- encoding: utf-8 -*- +""" +Custom exceptions for leap_mx. + +@authors: Isis Lovecruft, 0x2cdb8b35 +@version: 0.0.1 +@license: see included LICENSE file +""" + + +class MissingConfig(Exception): + """Raised when the config file cannot be found.""" + def __init__(self, message=None, config_file=None): + if message: + return + else: + self.message = "Cannot locate config file" + if config_file: + self.message += " %s" % config_file + self.message += "." + +class UnsupportedOS(Exception): + """Raised when we're not *nix or *BSD.""" diff --git a/src/leap/mx/util/exceptions.py b/src/leap/mx/util/exceptions.py deleted file mode 100644 index 63b946c..0000000 --- a/src/leap/mx/util/exceptions.py +++ /dev/null @@ -1,23 +0,0 @@ -#! -*- encoding: utf-8 -*- -""" -Custom exceptions for leap_mx. - -@authors: Isis Lovecruft, 0x2cdb8b35 -@version: 0.0.1 -@license: see included LICENSE file -""" - - -class MissingConfig(Exception): - """Raised when the config file cannot be found.""" - def __init__(self, message=None, config_file=None): - if message: - return - else: - self.message = "Cannot locate config file" - if config_file: - self.message += " %s" % config_file - self.message += "." - -class UnsupportedOS(Exception): - """Raised when we're not *nix or *BSD.""" -- cgit v1.2.3